如何查看 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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM