查看Debian的版本信息

$ lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux testing (squeeze)
Release:    testing
Codename:    squeeze

 

$ cat /etc/debian_version 
squeeze/sid

 

/usr/share/doc/base-files/FAQ:

Q. Ok, but how do I know which distribution I'm running?

A. If you are running testing or unstable, then /etc/debian_version is
not a reliable way to know that anymore. Looking at the contents of
your /etc/apt/sources.list file is probably a much better way.

 

其他相關的或有趣的包還有:

base-files

$ linuxinfo 

$ linuxlogo

 

查看內核版本:

cat   /proc/version

uname   -a

發佈了15 篇原創文章 · 獲贊 6 · 訪問量 9萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章