⑴CentOS是Linux发行版之一,已经发布多个版本,那么你知道你使用的CentOS是哪个版本的吗?下面小编就给大家介绍下查看CentOS版本信息的方法,一起来学习下吧。
⑵[rootlocalhost ~]# cat /proc/version
⑶Linux version ..-.el ( (g version .. (Red Hat ..- # SMP Fri Apr :: EDT
⑷[rootlocalhost ~]# uname -a
⑸Linux localhost.localdomain ..-.el # SMP Fri Apr :: EDT x_ x_ x_ GNU/Linux
⑹[rootlocalhost ~]# uname -r
⑺. 查看linux版本:
⑻ 列出所有版本信息,
⑼[rootlocalhost ~]# lsb_release -a
⑽LSB Version: :core-.-amd:core-.-ia:core-.-noarch:graphics-.-amd:graphics-.-ia:graphics-.-noarch
⑾Distributor ID: CentOS
⑿Description: CentOS release . (Final
⒀Release: .
⒁Codename: Final
⒂注:这个命令适用于所有的linux,包括RedHat、SUSE、Debian等发行版。
⒃ 执行cat /etc/issue,例如如下:
⒄[rootlocalhost ~]# cat /etc/issue
⒅CentOS release . (Final
⒆Kernel r on an m
⒇ 执行cat /etc/redhat-release ,例如如下:
⒈[rootlocalhost ~]# cat /etc/redhat-release
⒉CentOS release . (Final
⒊查看系统是位还是位:
⒋、getconf LONG_BIT or getconf WORD_BIT
⒌[rootlocalhost ~]# getconf LONG_BIT
⒍、file /bin/ls
⒎[rootlocalhost ~]# file /bin/ls
⒏/bin/ls: ELF -bit LSB executable, AMD x-, version (SYSV, for GNU/Linux .., dynamically linked (uses shared libs, for GNU/Linux .., stripped
⒐、lsb_release -a
⒑[rootlocalhost ~]# lsb_release -a
⒒LSB Version: :core-.-amd:core-.-ia:core-.-noarch:graphics-.-amd:graphics-.-ia:graphics-.-noarch
⒓Distributor ID: CentOS
⒔Description: CentOS release . (Final
⒕Release: .
⒖Codename: Final
⒗、或者是使用查看文件的方法。
⒘vim /ect/issue
⒙上面就是查看CentOS版本信息的介绍了,除了能够知道你使用的是哪个版本外,还能够查看你所使用的CentOS系统是位还是位的。