Linux - 查看系统的版本信息

 在 Linux 中,有多种方法可以查看系统的版本信息。

 

uname 命令

huey@huey-K42JE:~$ uname -a
Linux huey-K42JE 3.5.0-43-generic #66~precise1-Ubuntu SMP Thu Oct 24 14:55:08 UTC 2013 i686 i686 i386 GNU/Linux 

 

lsb_release 命令

huey@huey-K42JE:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 12.04.3 LTS
Release:	12.04
Codename:	precise

 

 查看 /proc/version 文件

huey@huey-K42JE:~$ cat /proc/version
Linux version 3.5.0-43-generic (buildd@akateko) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #66~precise1-Ubuntu SMP Thu Oct 24 14:55:08 UTC 2013

 

 查看 /etc/issue 文件

huey@huey-K42JE:~$ cat /etc/issue
Ubuntu 12.04.3 LTS \n \l

 

posted on 2015-03-13 20:27  huey2672  阅读(350)  评论(0编辑  收藏  举报