當前位置:首頁 » 操作系統 » 查看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-07-11 08:35:13 瀏覽:133
androidassets文件路徑 發布:2025-07-11 08:28:46 瀏覽:164
安卓源碼如何變成ios 發布:2025-07-11 08:20:35 瀏覽:625
純油雅閣配置怎麼選 發布:2025-07-11 08:16:37 瀏覽:320
數控圓孤編程 發布:2025-07-11 08:13:08 瀏覽:256
超級訪問羅大佑 發布:2025-07-11 07:43:33 瀏覽:387
邁騰有什麼安全配置 發布:2025-07-11 07:42:40 瀏覽:644
c語言字元逆序 發布:2025-07-11 07:41:57 瀏覽:923
怎麼配置交換機的console密碼 發布:2025-07-11 07:41:57 瀏覽:4
東芝存儲卡視頻 發布:2025-07-11 07:41:55 瀏覽:541