linux 查看系统版本号、内核、发行、CPU信息、内

作者: admin 分类: linux 发布时间: 2018-04-14 09:42

  Linux查看版本当前操作系统内核信息


	  [root@localhost ~]# uname -a

	  Linux localhost.localdomain 2.6.32-431.el6.i686 #1 SMP Sun Nov 10 22:20:22 EST 2013 i686 i686 i386 GNU/Linux

  Linux查看当前操作系统版本信息


	  [root@localhost ~]# cat /proc/version

	  Linux version 2.6.32-431.el6.i686 (mockbuild@x86-023.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Sun Nov 10 22:20:22 EST 2013

  Linux查看版本当前操作系统发行版信息


	  [root@localhost ~]# cat /etc/issue

	  Red Hat Enterprise Linux Server release 6.5 (Santiago)
            Kernel \r on an \m

	  [root@localhost ~]# cat /etc/redhat-release

	  Red Hat Enterprise Linux Server release 6.5 (Santiago)

	  [root@localhost ~]#  lsb_release -a

  Linux查看版本说明当前CPU运行在32bit模式下, 但不代表CPU不支持64bit


	  [root@localhost ~]# getconf LONG_BIT

	  32

  Linux查看cpu相关信息,包括型号、主频、内核信息等


	  [root@localhost ~]# cat /proc/cpuinfo

	processor : 0

	vendor_id : GenuineIntel

	cpu family : 6

	model  : 60

	model name : Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz

	stepping : 3

	cpu MHz  : 2593.996

	cache size : 6144 KB

	fdiv_bug : no

	hlt_bug  : no

	f00f_bug : no

	coma_bug : no

	fpu  : yes

	fpu_exception : yes

	cpuid level : 13

	wp  : yes

	flags  : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss nx pdpe1gb rdtscp lm constant_tsc up arch_perfmon pebs bts xtopology tsc_reliable nonstop_tsc aperfmperf unfair_spinlock pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm ida arat epb xsaveopt pln pts dts fsgsbase smep

	bogomips : 5187.99

	clflush size : 64

	cache_alignment : 64

	address sizes : 40 bits physical, 48 bits virtual

	power management:

  Linux查看版本当前内存剩余多少


	  [root@localhost ~]# cat /proc/meminfo

	MemTotal:        1938816 kB

	MemFree:         1565036 kB

	Buffers:           62848 kB

	Cached:           148092 kB

	SwapCached:            0 kB

	Active:           163220 kB

	Inactive:         142400 kB

	Active(anon):      94880 kB

	Inactive(anon):     1112 kB

	Active(file):      68340 kB

	Inactive(file):   141288 kB

	Unevictable:           0 kB

	Mlocked:               0 kB

	HighTotal:       1189832 kB

	HighFree:         939796 kB

	LowTotal:         748984 kB

	LowFree:          625240 kB

	SwapTotal:       2097144 kB

	SwapFree:        2097144 kB

	Dirty:                 0 kB

	Writeback:             0 kB

	AnonPages:         94696 kB

	Mapped:            34916 kB

	Shmem:              1316 kB

	Slab:              45664 kB

	SReclaimable:      37072 kB

	SUnreclaim:         8592 kB

	KernelStack:        1896 kB

	PageTables:         4140 kB

	NFS_Unstable:          0 kB

	Bounce:                0 kB

	WritebackTmp:          0 kB

	CommitLimit:     3066552 kB

	Committed_AS:     631608 kB

	VmallocTotal:     122880 kB

	VmallocUsed:        5144 kB

	VmallocChunk:     112332 kB

	HugePages_Total:       0

	HugePages_Free:        0

	HugePages_Rsvd:        0

	HugePages_Surp:        0

	Hugepagesize:       2048 kB

	DirectMap4k:       12280 kB

	DirectMap2M:      894976 kB
更多

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!