有没有办法从Bash中知道我正在运行的发行版#以及包含了什么内核版本?
发布于 2012-01-11 23:47:50
基本命令如下:
# cat /etc/gentoo-release
Gentoo Base System release 2.1
# uname -r
3.1.6-gentoo此外,您还可以使用app portage/gentoolkit包实用程序以"gentoo-way“获取此信息:
# equery list baselayout
* Searching for baselayout ...
[IP-] [ ] sys-apps/baselayout-2.1:0
# eselect kernel list
Available kernel symlink targets:
[1] linux-3.1.4-gentoo
[2] linux-3.1.5-gentoo
[3] linux-3.1.6-gentoo *
[4] linux-3.1.7-gentoo
[5] linux-3.2.0-gentoo
[6] linux-3.2.0-gentoo-r1发布于 2012-01-12 10:23:30
Gentoo是一个滚动版本,所以尽管上面发布的信息是正确的和相关的,但是还有一个非常重要的谜题:
eselect profile list它对系统的影响要比确切的内核版本大得多.
发布于 2012-01-12 09:47:00
要检查Linux发行版名称和版本(不是内核版本):
cat /etc/issue或
cat /etc/*-release或
lsb_release -a资料来源:http://www.dogruel.com/?p=36.
https://unix.stackexchange.com/questions/28901
复制相似问题