转自:http://www.cnblogs.com/lbsx/archive/2010/12/29/1920989.html
$ 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
本文介绍了如何在Debian系统中查询当前运行的发行版版本,包括使用`lsb_release-a`命令获取详细版本信息,通过查看`/etc/debian_version`文件确认版本代号,并提供了其他相关命令如`linuxinfo`和查询内核版本的方法。
2796

被折叠的 条评论
为什么被折叠?



