본문 바로가기 주메뉴 바로가기

자료실

[리눅스]dmesg 실행 및 예시

관리자 2024-09-23 07:49:41 조회수 2,147

1 dmesg

리눅스 부팅 메시지리눅스 부팅 로그

/var/log/dmesg

/bin/dmesg

display message; (부팅시표시 메시지, d 메시지

·        시스템 부팅 메시지

·        부팅시 드라이버 오류 등을 확인할  있다.

·        로그파일 dmesg명령어 dmesg 있다.

2 실행 예시

dmesg

root@zetawiki:~# dmesg

[    0.000000] Initializing cgroup subsys cpuset

[    0.000000] Initializing cgroup subsys cpu

[    0.000000] Initializing cgroup subsyscpuacct

... (생략)

[   17.182925] random: nonblocking pool isinitialized

[83649.584278]init: systemd-logind main process (526) killed by TERM signal

[83654.119111]init: irqbalance main process (917) killed by TERM signal

[83667.248557]systemd-udevd[13285]: starting version 204

cat /var/log/dmesg

root@zetawiki:~# cat/var/log/dmesg

[    0.000000] Initializing cgroup subsys cpuset

[    0.000000] Initializing cgroup subsys cpu

[    0.000000] Initializing cgroup subsyscpuacct

... (생략)

[    9.859137] audit: type=1400audit(1443014929.652:18): apparmor="STATUS"operation="profile_replace" profile="unconfined"name="/usr/lib/connman/scripts/dhclient-script" pid=816comm="apparmor_parser"

[    9.859341] audit: type=1400audit(1443014929.652:19): apparmor="STATUS"operation="profile_replace" profile="unconfined"name="/usr/lib/connman/scripts/dhclient-script" pid=816comm="apparmor_parser"

[    9.870241] audit: type=1400audit(1443014929.660:20): apparmor="STATUS"operation="profile_load" profile="unconfined"name="/usr/sbin/tcpdump" pid=818 comm="apparmor_parser"

3 옵션 -c: 클리어

·        -c 옵션을 주면 메시지 1 출력  제거됨

root@zetawiki:~# dmesg -c

[    0.000000] Initializing cgroup subsys cpuset

[    0.000000] Initializing cgroup subsys cpu

[    0.000000] Initializing cgroup subsyscpuacct

... (생략)

[83649.584278]init: systemd-logind main process (526) killed by TERM signal

[83654.119111]init: irqbalance main process (917) killed by TERM signal

[83667.248557]systemd-udevd[13285]: starting version 204

root@zetawiki:~# dmesg

root@zetawiki:~#