當前位置:首頁 » 操作系統 » 如何查看linux版本

如何查看linux版本

發布時間: 2022-02-23 22:27:55

『壹』 如何用命令查看linux版本

查看內核版本命令:
cat /proc/versionuname -auname -rcat /etc/issueman uname2,查看linux版本:抄錄如下:1) 登錄到伺服器執行 lsb_release -a ,即可列出所有版本信息.命令介紹請點擊進入查看

『貳』 linux怎麼查看裝的是那個版本

LINUX的內核具有兩種不同的版本號,實驗版本和產品化版本。要確定 LINUX版本的類型,只要查看一下版本號:每一個版本號由三位數字組成,第二位數字說明版本類型。如果第二位數字是偶數則說明這種版本是產品化版本,如果是奇數說明是實驗版本。如2.4.18是產品化版本,2.5.21是實驗版本。查看 linux內核版本 命令:uname -r

『叄』 如何查看linux版本的型號

Linux系統如何查看版本信息
1、查看當前操作系統內核信息
uname -a
$ uname -a

Linux vm-web 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

2、查看當前操作系統版本信息
cat /proc/version
$ cat /proc/version
Linux version 3.10.0-693.21.1.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Wed Mar 7 19:03:37 UTC 2018

3、查看當前操作系統發行版信息
cat /etc/issue 或 cat /etc/redhat-release
$ cat /etc/issue
\S
Kernel \r on an \m

$ cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)

4、查看cpu相關信息,包括型號、主頻、內核信息等
cat /proc/cpuinfo
$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 45
model name : Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz
stepping : 7
microcode : 0xffffffff
cpu MHz : 2199.998
cache size : 20480 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
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 mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm xsaveopt
bogomips : 4399.99
clflush size : 64
cache_alignment : 64
address sizes : 44 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 45
model name : Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz
stepping : 7
microcode : 0xffffffff
cpu MHz : 2199.998
cache size : 20480 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
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 mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm xsaveopt
bogomips : 4399.99
clflush size : 64
cache_alignment : 64
address sizes : 44 bits physical, 48 bits virtual
power management:

5、列出所有版本信息
lsb_release -a
$ lsb_release -a
-bash: lsb_release: command not found
出現command not found說明沒安裝lsb_realease,可以執行命令yum install -y redhat-lsb安裝lsb_realease,安裝完成後,版本信息如下:
$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.4.1708 (Core)
Release: 7.4.1708
Codename: Core

『肆』 如何查看linux系統下,各文件系統版本

xfs_info -V /dev/sdc
就可以看到xfs的版本號了

熱點內容
java與oracle 發布:2025-03-18 01:18:05 瀏覽:704
怎麼給win7電腦文件加密 發布:2025-03-18 01:10:41 瀏覽:988
python生成隨機數 發布:2025-03-18 01:10:40 瀏覽:94
手機存儲卡怎麼設置 發布:2025-03-18 01:04:26 瀏覽:213
背演算法好處 發布:2025-03-18 01:02:18 瀏覽:57
win7添加刪除在哪個文件夾 發布:2025-03-18 01:02:13 瀏覽:705
蘋果寫源碼 發布:2025-03-18 00:50:47 瀏覽:363
生存源碼 發布:2025-03-18 00:50:46 瀏覽:351
bika安卓怎麼下載 發布:2025-03-18 00:43:49 瀏覽:219
mysql刪除資料庫所有表 發布:2025-03-18 00:43:41 瀏覽:399