以下三种方法可以查看系统版本或内核版本,可以选择使用。
方法一:查看系统文件
1 2 3 4 5 6 7 8 9
| $ cat /etc/os-release PRETTY_NAME="Deepin 20.9" NAME="Deepin" VERSION_ID="20.9" VERSION="20.9" VERSION_CODENAME="apricot" ID=Deepin HOME_URL="https://www.deepin.org/" BUG_REPORT_URL="https://bbs.deepin.org/"
|
方法二:uname命令
1 2
| $ uname -a Linux frin 5.18.17-amd64-desktop-hwe
|
方法三:lsb_release命令
1 2 3 4 5 6
| $ lsb_release -a No LSB modules are available. Distributor ID: Deepin Description: Deepin 20.9 Release: 20.9 Codename: apricot
|