最終更新:2019-05-12 (日) 04:47:13 (100d)  

dmesg はてなブックマークを見る
Top / dmesg

display message

dmesg - print or control the kernel ring buffer

起動時のメッセージを見れる+診断メッセージ

Ubuntu/パッケージ

バッファのサイズ

メモ

メッセージファイル関数メモ
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version
Command line:
Hypervisor detected:arch/x86/kernel/cpu/hypervisor.c?detect_hypervisor_vendor?
Kernel command line:?init/main.cstart_kernel
input: %s as %sdrivers/input/input.cinput_register_deviceboot_command_line
hidraw: raw HID events driver (C) Jiri Kosinadrivers/hid/hidraw.chidraw_initLinux 3.9
usbcore: registered new interface driverdrivers/usb/core/driver.cusb_register_driverusbfs,hub?,
usbcore: registered new device driverdrivers/usb/core/driver.cusb_register_device_driverusb?
usbhid: USB HID core driver?

メモ

  • dmesg -n 1

usage

  • Usage:
     dmesg [options]
    
    Options:
     -C, --clear                 clear the kernel ring buffer
     -c, --read-clear            read and clear all messages
     -D, --console-off           disable printing messages to console
     -d, --show-delta            show time delta between printed messages
     -E, --console-on            enable printing messages to console
     -f, --facility <list>       restrict output to defined facilities
     -h, --help                  display this help and exit
     -k, --kernel                display kernel messages
     -l, --level <list>          restrict output to defined levels
     -n, --console-level <level> set level of messages printed to console
     -r, --raw                   print the raw message buffer
     -s, --buffer-size <size>    buffer size to query the kernel ring buffer
     -T, --ctime                 show human readable timestamp (could be 
                                 inaccurate if you have used SUSPEND/RESUME)
     -t, --notime                don't print messages timestamp
     -u, --userspace             display userspace messages
     -V, --version               output version information and exit
     -x, --decode                decode facility and level to readable string
    
    Supported log facilities:
        kern - kernel messages
        user - random user-level messages
        mail - mail system
      daemon - system daemons
        auth - security/authorization messages
      syslog - messages generated internally by syslogd
         lpr - line printer subsystem
        news - network news subsystem
    
    Supported log levels (priorities):
       emerg - system is unusable
       alert - action must be taken immediately
        crit - critical conditions
         err - error conditions
        warn - warning conditions
      notice - normal but significant condition
        info - informational
       debug - debug-level messages
    
    

関連