命令
cat /etc/issue
输出内容:
Ubuntu 14.04.5 LTS \n \l
第二种方法
使用 lsb_release 命令查看 Ubuntu 版本号,这种方法输出的内容更为详细。
命令
lsb_release -a
输出结果:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
cat /etc/issue
Ubuntu 14.04.5 LTS \n \l
第二种方法
使用 lsb_release 命令查看 Ubuntu 版本号,这种方法输出的内容更为详细。
命令
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty