Ways to Check Linux OS Version in Command Line
๊ถ๊ธํด์ ๊ธ ์ฐพ์๋ด
Linux Kernel version ํ์ธ
: Linux Kernel version์ /proc/version
์์ ๊ด๋ฆฌ๋๊ณ ์๋ค
$ cat /proc/version
Linux version 3.10.0-957.21.3.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Tue Jun 18 16:35:19 UTC 2019
ํ์ฌ kernel version ํ์ธ
์์ธ ์ ๋ณด๋
-a
option์ ์ฌ์ฉํ๋ค
$ uname -r
3.10.0-957.21.3.el7.x86_64
$ uname -a
Linux 3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Linux Distro version ํ์ธ
: Distro version ํ์ธ ๋ฐฉ๋ฒ์ ๊ฐ distro๋ง๋ค ๋ค๋ฅด๋ค
CentOS / RedHat Enterprise
# cat /etc/redhat-release
CentOS release 6.3 (Final)
Ubuntu
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"
Debian
$ cat /etc/debian_version
4.0
Fedora
cat /etc/fedora-release
Last updated
Was this helpful?