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

查看linux版本

發布時間: 2022-01-17 16:49:10

1. 如何查看linux版本

需要准備的材料分別是:電腦、linux連接工具。

1、首先連接上linux主機,進入等待輸入指令的linux命令行狀態。

2. Linux怎麼查看版本

1)[root@localhost ~]# cat /proc/version
Linux version 2.6.18-194.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri Apr 2 14:58:14 EDT 2010
2)
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
3)
[root@localhost ~]# uname -r
2.6.18-194.el5
2. 查看linux版本:
1) 列出所有版本信息,
[root@localhost ~]# lsb_release -a
LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description: CentOS release 5.5 (Final)
Release: 5.5
Codename: Final
注:這個命令適用於所有的linux,包括RedHat、SUSE、Debian等發行版。
2) 執行cat /etc/issue,例如如下:
[root@localhost ~]# cat /etc/issue
CentOS release 5.5 (Final)
Kernel r on an m
3) 執行cat /etc/redhat-release ,例如如下:
[root@localhost ~]# cat /etc/redhat-release
CentOS release 5.5 (Final)

3. 查看linux版本是多少位

查看linux機器是32位還是64位的方法:
file /sbin/init 或者
file /bin/ls
/sbin/init: ELF64-bitLSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
如果顯示 64-bit 則為64位;
file /sbin/init
/sbin/init: ELF32-bitLSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped
如果顯示為32 bit 則為32bit;uname -a:uname -aLinux pmx002**.**.** 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010x86_64x86_64 x86_64 GNU/Linux

4. 怎麼查看linux系統的內核版本

1、在之前需要介紹一個目錄:proc,內存映射目錄。這個目錄是不佔硬碟空間的,它保存著內存的真實寫照,首先查看ls /proc信息;

5. 如何查看linux系統下,各文件系統版本

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

熱點內容
酷派內置存儲空間不足 發布:2025-09-16 15:50:44 瀏覽:396
php設置編碼格式 發布:2025-09-16 15:20:04 瀏覽:609
php取兩位小數點 發布:2025-09-16 15:12:40 瀏覽:312
加密塊流加密 發布:2025-09-16 15:07:36 瀏覽:697
sqldeveloper導出表 發布:2025-09-16 15:07:33 瀏覽:363
xbox360ftp 發布:2025-09-16 14:45:34 瀏覽:848
火車站附近wifi密碼是多少 發布:2025-09-16 14:45:30 瀏覽:191
國家標准加密 發布:2025-09-16 14:45:27 瀏覽:950
php集成支付寶 發布:2025-09-16 14:05:28 瀏覽:720
php的pregmatchall 發布:2025-09-16 14:04:43 瀏覽:439