Good way to list multiple logfiles on Linux.

This is a a good way to list multiple logfiles, this will list the main logfile and all of the backups. jason@Yog-Sothoth » ~ » $ ls -hula /var/log/dpkg.log{,.[0-9].gz} -rw-r–r– 1 root root 280K Jun 1 09:08 /var/log/dpkg.log -rw-r–r– 1 root root 23K Apr 2 06:48 /var/log/dpkg.log.2.gz -rw-r–r– 1 root root 17K Mar 5 13:26 … Read more

How to get information out of the system logfiles on Linux. Showing failed logins.

There are a few ways to get information out of the /var/log files using the Linux command line. Here are a few examples. Show the history of apt commands on your Linux box with this command. jason@eyjafjallajkull:~$ grep ‘Commandline: ‘ /var/log/apt/history.log Commandline: apt-get upgrade Commandline: apt-get install gnome-alsamixer Commandline: apt-get install indicator-sound-switcher Commandline: apt-get upgrade … Read more