答案1
它在这里:cat /etc/lsb-release
。在我的系统上,它给出以下输出:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"
有点相关,uname -a
还提供有关安装的有用信息,例如内核版本。
答案2
karthick@Ubuntu1104:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu natty (development branch)
Release: 11.04
Codename: natty