by Ron | Aug 1, 2008 | Linux
This doesn’t work perfectly, but I often use it to start tracking down disk hogs:
To return the 10 largest items in a given directory:
du -cksh * |sort -rn |head -11
Some times it’s helpful to view all
du -cksh * |sort -rn
If someone has a better approach, please comment.
by Ron | Aug 1, 2008 | Linux
Looking for a log to show you failed login attempts to your Linux machine? Look in:
/var/log/btmp
You can access it by running:
/usr/bin/lastb
It’s similiar to the wtmp log of user login/logouts and the utmp log showing who is currently logged in.
by Ron | Jun 26, 2008 | Linux
find /somedir -type f -size +50000k -mtime +1095 -exec ls -lh {} \; | awk '{ print $6 "/" $8 " " $9 $10 $11 ": " $5 }'