Ubuntu查看系统的各种版本信息

来源:互联网 发布:linux if语句的用法 编辑:程序博客网 时间:2024/06/05 00:08

下面是一些查看当前Linux系统的版本的方法:
注:proc目录下记录的当前系统运行的各种数据,version记录的版本信息可以通过cat查看到。

1. 使用命令:cat /proc/version
这里写图片描述

proc目录下记录的当前系统运行的各种数据,version记录的版本信息可以直接通过cat查看到,还可以看到gcc版本信息。

2. 使用命令:uname -a

这里写图片描述

如上图显示自己的内核版本,并且可以查看系统是32位(i386);

$ uname -m i386

3. 使用命令:lsb_release -a

这里写图片描述

# lsb_release --helpUsage: lsb_release [options]Options:  -h, --help         show this help message and exit  -v, --version      show LSB modules this system supports  -i, --id           show distributor ID  -d, --description  show description of this distribution  -r, --release      show release number of this distribution  -c, --codename     show code name of this distribution  -a, --all          show all of the above information  -s, --short        show requested information in short format 

4. 使用命令:cat /etc/issue

这里写图片描述