Find Large Files in 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,...

Find Failed Login Attempts in Logs

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...