"리눅스 커널 버전 확인"의 두 판 사이의 차이

잔글 (10.20.2.7(토론)의 편집을 Jmnote의 마지막 판으로 되돌림)
태그: 일괄 되돌리기
4번째 줄: 4번째 줄:
<source lang='console'>
<source lang='console'>
[root@zetawiki ~]# uname -r
[root@zetawiki ~]# uname -r
2.6.32-279.el6.x86_64  
2.6.32-279.el6.x86_64
</source>
</source>
<source lang='console'>
<source lang='console'>

2020년 3월 6일 (금) 00:36 판

리눅스 커널 버전 확인

1 방법 1: uname

[root@zetawiki ~]# uname -r
2.6.32-279.el6.x86_64
[root@zetawiki ~]# uname -r
2.6.18-274.3.1.el5xen
root@zetawiki:~# uname -r
4.4.0-31-generic

2 방법 2: hostnamectl

root@zetawiki:~# hostnamectl | grep Kernel
            Kernel: Linux 4.4.0-31-generic

3 방법 3: /proc/version

[root@hostname ~]# cat /proc/version
Linux version 2.6.32-279.el6.x86_64 (mockbuild@c6b9.bsys.dev.centos.org) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Fri Jun 22 12:19:21 UTC 2012
root@zetawiki:~# cat /proc/version
Linux version 3.16.0-30-generic (buildd@kissel) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015

4 방법 4: last

[root@zetawiki ~]# last reboot | head -1
reboot   system boot  2.6.32-279.el6.x Sat Mar  9 02:55 - 03:25  (00:30)
root@zetawiki:~# last | grep reboot | head -1
reboot   system boot  3.16.0-30-generi Wed Mar 15 05:00 - 11:22  (06:21)

5 방법 5: dpkg (우분투)

root@zetawiki:~# dpkg -l | grep linux-generic
ii  linux-generic                         3.13.0.100.108                    amd64        Complete Generic Linux kernel and headers
root@zetawiki:~# dpkg -l | grep linux-generic
root@zetawiki:~# dpkg -l | grep linux-headers
ii  linux-headers-3.19.0-49             3.19.0-49.55~14.04.1hf1533043v20160201b1 all          Header files related to Linux kernel version 3.19.0
ii  linux-headers-3.19.0-49-generic     3.19.0-49.55~14.04.1hf1533043v20160201b1 amd64        Linux kernel headers for version 3.19.0 on 64 bit x86 SMP

6 방법 6: rpm (CentOS)

[root@zetawiki ~]# rpm -qa kernel
kernel-2.6.32-279.el6.x86_64

7 방법 7: yum (CentOS)

[root@zetawiki ~]# yum info installed kernel | egrep "^Version|^Release"
Version     : 2.6.32
Release     : 279.el6
[root@zetawiki ~]# yum list installed | grep ^kernel
kernel.x86_64           2.6.32-279.el6  @anaconda-CentOS-201207061011.x86_64/6.3
kernel-devel.x86_64     2.6.32-279.el6  @anaconda-CentOS-201207061011.x86_64/6.3
kernel-firmware.noarch  2.6.32-279.el6  @anaconda-CentOS-201207061011.x86_64/6.3
kernel-headers.x86_64   2.6.32-279.el6  @anaconda-CentOS-201207061011.x86_64/6.3

8 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}