确认在Ubuntu上的发行版本
在Ubuntu中,用于检查发行版本的命令是什么?
$ cat /etc/lsb-release
执行例
ubuntu@rails-dev-box:/etc/apt$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.10
DISTRIB_CODENAME=yakkety
DISTRIB_DESCRIPTION="Ubuntu 16.10"
$ cat /etc/lsb-release
执行例
ubuntu@rails-dev-box:/etc/apt$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.10
DISTRIB_CODENAME=yakkety
DISTRIB_DESCRIPTION="Ubuntu 16.10"