본문 바로가기
OS/Linux

[Linux] Ubuntu 현재 버전 확인

by pcm9881 2022. 9. 28.

첫번째 방법

- 명령어

lsb_release -a

- 결과

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal

 

두번째 방법

- 명령어

cat /etc/issue

- 결과

Ubuntu 20.04.5 LTS \n \l

 

세번째 방법

- 명령어

cat /etc/os-release

- 결과

NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

 

네번째 방법

- 명령어

hostnamectl

-결과

Static hostname: ip-...
Icon name: computer-vm
Chassis: vm
Machine ID: ba35b7063a...
Boot ID: 3c4f5a27a80...
Virtualization: xen
Operating System: Ubuntu 20.04.5 LTS
Kernel: Linux 5.15.0-1019-aws
Architecture: x86-64

참조

linuxize.com: https://linuxize.com/post/how-to-check-your-ubuntu-version/

728x90

댓글