방법1.
1 2 3 | $ cat /etc/issue Ubuntu 16.04.3 LTS \n \l | cs |
방법2.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | $ cat /etc/*release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS" NAME="Ubuntu" VERSION="16.04.3 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.3 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial | cs |
* 위의 방법은 lsb-release 파일과 os-release 파일을 각각 불러와서 출력합니다.
1 2 3 4 | $ ll /etc/ |grep release -rw-r--r-- 1 root root 105 Jul 31 13:36 lsb-release lrwxrwxrwx 1 root root 21 Jul 31 13:36 os-release -> ../usr/lib/os-release | cs |
방법3.
1 2 3 | $ uname -a Linux 2a388618a88e 4.10.0-37-generic #41~16.04.1-Ubuntu SMP Fri Oct 6 22:42:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux | cs |
방법4.
1 2 3 4 5 6 7 | $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial | cs |
'Operating System > Linux' 카테고리의 다른 글
ubuntu git 설치 (0) | 2017.10.19 |
---|---|
ubuntu vim 설치 (0) | 2017.10.19 |
ubuntu group (0) | 2017.10.19 |
ubuntu docker 설치 (0) | 2017.10.19 |
Ubuntu Desktop 설치 (0) | 2017.10.18 |