Debian查看当前系统的版本信息
这里介绍两种方法
1. 查看/etc/issue文件
最简单的就是查看/etc/issue文件了。
# cat /etc/issue
Debian GNU/Linux 10 \n \l
如果要查看Debian的小版本号,可以查看/etc/debian_version文件。
# cat /etc/debian_version
10.9
2. 查看/etc/os-release文件
这个文件有更详细的版本信息。
# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
