如何檢視已安裝的centos版本資訊:
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)
檢視系統是64位還是32位:
1、getconf long_bit or getconf word_bit
[root@localhost ~]# getconf long_bit
2、file /bin/ls
[root@localhost ~]# file /bin/ls
/bin/ls: elf 64-bit lsb executable, amd x86-64, version 1 (sysv), for gnu/linux 2.6.9, dynamically linked (uses shared libs), for gnu/linux 2.6.9, stripped
3、lsb_release -a
[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
4、或者是使用檢視檔案的方法。
vim /ect/issue
如何檢視已安裝的CentOS版本資訊
1 root localhost cat proc version linux version 2.6.18 194.el5 mockbuild builder10.centos.org gcc version 4.1.2 20080704 red hat 4.1.2 48 1 smp fri ap...
如何檢視已安裝的CentOS版本資訊
一 如何檢視已安裝的centos版本資訊 1 root localhost cat proc version linux version 2.6.18 194.el5 mockbuild builder10.centos.org gcc version 4.1.2 20080704 red hat ...
如何檢視linux某軟體是否已安裝
因為linux安裝軟體的方式比較多,所以沒有乙個通用的辦法能查到某些軟體是否安裝了。總結起來就是這樣幾類 1 rpm包安裝的,可以用rpm qa看到,如果要查詢某軟體包是否安裝,用 rpm qa grep 軟體或者包的名字 root hexuweb102 rpm qa grep ruby 2 以de...