Results 1 to 5 of 5

Thread: System Messages in terminal

  1. #1
    Join Date
    Aug 2013
    Location
    Florida
    Beans
    26
    Distro
    Ubuntu 12.04 Precise Pangolin

    System Messages in terminal

    Hi all, I just performed the shutdown -r now command to restart my machine, and unlike other times I've used this command, a message was briefly displayed before the machine was restart. My question is, how can I look up a message that was output in the terminal by the system? I'm curious to know because it looked like it was an error message of some sort. I checked in the Linux Command Resources thread but to no avail. Any help would be appreciated, thanks. BTW I'm on 12.04 LTS.

  2. #2
    Join Date
    Aug 2009
    Location
    Makati City, Philippines
    Beans
    2,269
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: System Messages in terminal

    I think it is in the /var/log/dmesg or in the /var/log/syslog

  3. #3
    Join Date
    Aug 2013
    Location
    Florida
    Beans
    26
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: System Messages in terminal

    Thank you! I found it in var/log/syslog, but it is only showing me messages from today. Is there a way that I can go back to a particular day?

  4. #4
    Join Date
    Aug 2009
    Location
    Makati City, Philippines
    Beans
    2,269
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: System Messages in terminal

    Code:
    cd /var/log/
    ls -l
    Output is a lot of logs:
    Code:
    ....
    -rw-r----- 1 syslog            adm  213254 Sep  3 11:17 syslog
    -rw-r----- 1 syslog            adm   97429 Sep  3 09:00 syslog.1
    -rw-r----- 1 syslog            adm   40291 Sep  2 08:58 syslog.2.gz
    -rw-r----- 1 syslog            adm    4114 Aug 30 08:43 syslog.3.gz
    -rw-r----- 1 syslog            adm   41273 Aug 29 08:44 syslog.4.gz
    -rw-r----- 1 syslog            adm    3216 Aug 28 09:03 syslog.5.gz
    -rw-r----- 1 syslog            adm    2252 Aug 27 09:01 syslog.6.gz
    -rw-r----- 1 syslog            adm    3184 Aug 23 08:51 syslog.7.gz
    ....
    See the dates? Those are compressed log files. Extract them and view their contents.

  5. #5
    Join Date
    Aug 2013
    Location
    Florida
    Beans
    26
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: System Messages in terminal

    Thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •