Ubuntu Linux: View Boot Log

How do I view detailed boot log of my Ubuntu system?

The dmesg command print or control the kernel ring buffer. You can also use files located in /var/log/ directory to see snapshot of boot messages. To see logs type the following command at shell prompt (open the terminal and type the commands):
$ dmesg | less
You can use the following two files as well:

ADVERTISEMENTS

  • /var/log/boot.log
  • /var/log/dmesg

To see them type:

less /var/log/boot.log
less /var/log/dmesg
grep error /var/log/dmesg
grep something /var/log/boot.log
🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
2 comments… add one
  • Niklas May 16, 2012 @ 10:49

    On a Ubuntu/Debian, Bootlog is turned of by default. Turn it on like this:

    vi /etc/default/bootlogd

    # Run bootlogd at startup ?
    BOOTLOGD_ENABLE=Yes

  • العاب Mar 25, 2015 @ 9:18

    hello, how to get boot log on boot remotly , i have a linux server in my office and i remote retart it but some times apache or mysql crach on boot time and i cant knew why i must go to my office and connect monitor to see the error,
    is there any way to see live boot message ?
    thank you

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.