如何查看 linux 发行版本

以 debian 10 buster 为例

有时候我们需要知道当前正在使用的 linux 的发行版本信息...可以通过下面几种方式来查看

使用 lsb_release 命令查看

lsb_release --all

会输出如下内容:

No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 10 (buster)
Release:        10
Codename:       buster

查看 /etc/debian_version

cat /etc/debian_version
10.0

查看 /etc/issue.net

cat /etc/issue.net
Debian GNU/Linux 10
posted @ 2020-01-02 17:22  taadis  阅读(1705)  评论(0编辑  收藏  举报