[[email protected] ~]# uname [選項]
選項:
[[email protected] ~]# uname -a
Linux localhost.localdomain 2.6.32-279.el6.i686 #1 SMP Fri Jun 22 10:59:55 UTC
20.2 i686 i686 i386 GNU/Linux
[[email protected] ~]# uname -r
2.6.32-279.el6.i686
[[email protected] ~]# file /bin/ls
/bin/ls:ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically
linked (uses shared libs), for GNU/Linux 2.6.18, stripped
#很明顯,當前系統是32位元的
[[email protected] ~]# lsb_release -a
LSB
Version::core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noar
ch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID:CentOS
Description: CentOS release 6.3 (Final)
Release: 6.3
Codename: Final
#當前使用的Linux的發行版本是CentOS 6.3