|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
欢迎大家来到仓酷云论坛!1)[root@localhost~]#cat/proc/version
Linuxversion2.6.18-194.el5(mockbuild@builder10.centos.org)(gccversion4.1.220080704(RedHat4.1.2-48))#1SMPFriApr214:58:14EDT2010
2)
[root@localhost~]#uname-a
Linuxlocalhost.localdomain2.6.18-194.el5#1SMPFriApr214:58:14EDT2010x86_64x86_64x86_64GNU/Linux
3)
[root@localhost~]#uname-r
2.6.18-194.el5
2.检察linux版本:
1)列出一切版本信息,
[root@localhost~]#lsb_release-a
LSBVersion::core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
DistributorID:CentOS
Description:CentOSrelease5.5(Final)
Release:5.5
Codename:Final
注:这个下令合用于一切的linux,包含Redhat、SuSE、Debian等刊行版。
2)实行cat/etc/issue,比方以下:
[root@localhost~]#cat/etc/issue
CentOSrelease5.5(Final)
Kernelronanm
3)实行cat/etc/redhat-release,比方以下:
[root@localhost~]#cat/etc/redhat-release
CentOSrelease5.5(Final)
检察体系是64位仍是32位:
1、getconfLONG_BITorgetconfWORD_BIT
[root@localhost~]#getconfLONG_BIT
64
2、file/bin/ls
[root@localhost~]#file/bin/ls
/bin/ls:ELF64-bitLSBexecutable,AMDx86-64,version1(SYSV),forGNU/Linux2.6.9,dynamicallylinked(usessharedlibs),forGNU/Linux2.6.9,stripped
3、lsb_release-a
[root@localhost~]#lsb_release-a
LSBVersion::core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
DistributorID:CentOS
Description:CentOSrelease5.5(Final)
Release:5.5
Codename:Final
4、大概是利用检察文件的***。
vim/ect/issue
欢迎大家来到仓酷云论坛! |
|