下边是一些查看当前Linux系统的版本的方式:
注:proc目录下记录的当前系统运行的各类数据redhat linux 9.0,version记录的版本信息可以通过cat查看到。
1.使用命令:cat/proc/version
![如何用ubuntu_ubuntu新手教程_ubuntu系统使用教程](https://www.linuxgod.net/wp-content/uploads/2023/11/1699934878844_0.png)
![image.png](https://www.linuxgod.net/wp-content/uploads/2023/11/1699934878844_1.png)
proc目录下记录的当前系统运行的各类数据ubuntu系统使用教程,version记录的版本信息可以直接通过cat查看到,还可以见到gcc版本信息。
![如何用ubuntu_ubuntu系统使用教程_ubuntu新手教程](https://www.linuxgod.net/wp-content/uploads/2023/11/1699934878844_2.jpg)
2.使用命令:uname-a
![ubuntu系统使用教程_ubuntu新手教程_如何用ubuntu](https://www.linuxgod.net/wp-content/uploads/2023/11/1699934878844_4.png)
如上图显示自己的内核版本ubuntu系统使用教程linux社区,而且可以查看系统是32位(i386);
$ uname -m
i38612
![如何用ubuntu_ubuntu系统使用教程_ubuntu新手教程](https://www.linuxgod.net/wp-content/uploads/2023/11/1699934878844_5.png)
3.使用命令:lsb_release-a
![image.png](https://www.linuxgod.net/wp-content/uploads/2023/11/1699934878844_6.png)
![ubuntu系统使用教程_ubuntu新手教程_如何用ubuntu](https://www.linuxgod.net/wp-content/uploads/2023/11/1699934878844_7.png)
# lsb_release --help
Usage: 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 123456789101112
4.使用命令:cat/etc/issue