Ubuntu – How to see log to find a boot problem


I want to find the cause of a boot problem I have tried
ls -ltr /var/log from antony@antony which gives me login incorrect
can someone tell me what command to use to see what has upset the boot thanks

NB when trying some commands from antony@antony then password I get login incorrect.
Is that right?

Best Answer

For systemd based versions of Ubuntu (15.04 onwards) you'll need to use the journalctl command to view the current boot log messages (as mentioned in this answer, and here for more info on how to enable them for previous boots):

journalctl -b