1. 程式人生 > 其它 >linux下如何檢視已安裝的centos版本資訊

linux下如何檢視已安裝的centos版本資訊

一、linux下如何檢視已安裝的centos版本資訊: 1.Linux檢視當前作業系統版本資訊 cat /proc/version Linux version 2.6.32-696.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) ) #1 SMP Tue Mar 21 19:29:05 UTC 2017 2.Linux檢視版本當前作業系統核心資訊 uname -a Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 athlon i386 GNU/Linux 3.linux檢視版本當前作業系統發行資訊 cat /etc/issue 或 cat /etc/centos-release CentOS release 6.9 (Final) 4.Linux檢視cpu相關資訊,包括型號、主頻、核心資訊等 cat /etc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 60 model name : Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz stepping : 3 microcode : 29 cpu MHz : 3292.277 cache size : 6144 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 4 apicid : 0 initial apicid : 0 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 acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase bmi1 avx2 smep bmi2 erms invpcid bogomips : 6584.55 clflush size : 64 cache_alignment : 64 address sizes : 39 bits physical, 48 bits virtual 5.Linux檢視版本說明當前CPU執行在32bit模式下(但不代表CPU不支援64bit) getconf LONG_BIT 64 二、uname的使用 uname命令用於列印當前系統相關資訊(核心版本號、硬體架構、主機名稱和作業系統型別等)。 uname -a顯示全部資訊 -m或--machine:顯示電腦型別; -r或--release:顯示作業系統的發行編號; -s或--sysname:顯示作業系統名稱; -v:顯示作業系統的版本; -p或--processor:輸出處理器型別或"unknown"; -i或--hardware-platform:輸出硬體平臺或"unknown"; -o或--operating-system:輸出作業系統名稱; --help:顯示幫助; --version:顯示版本資訊。 三、檢視Linux版本 1.檢視系統版本資訊的命令 lsb_release -a (使用命令時提示command not found,需要安裝yum install redhat-lsb -y) [root@localhost ~]# lsb_release -a LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Distributor ID: CentOS Description: CentOS Linux release 6.0 (Final) Release: 6.0 Codename: Final 注:這個命令適用於所有的linux,包括RedHatSUSE、Debian等發行版。 2.檢視centos版本號 cat /etc/issue CentOS release 6.9 (Final) Kernel \r on an \m 3.使用 file /bin/ls 轉載https://www.cnblogs.com/vaelailai/p/7545166.html