Tag Archives: howto

Tips: Finding Huge Files on Linux

I tend to always need to find the huge log files that are filling up servers. One fast way is to use find and awk to list them in human readable form:

find / -type f -size +20000k -exec ls -lh {} ; | awk '{ print $8 ": " $5 }'

Int he above example I am using find / which will search entire root filesystem. You can change this to /var/log of any path you want to find the largest files. You can also change the 20000k to a smaller or larger size (20000k = 19.53 MB).


Using Dropbox for SSH Key and Configuration Storage

I have been using the free 2GB Dropbox account to store my SSH keys for our servers. Along with my mutt and other configuration files. The best part of Dropbox on Linux is being able to symlink things into the Dropbox directory to allow me to have the same configurations on all the various computers I use.

Basically what I do is have a .ssh_keys directory in my main computer’s home directory which I symlink in my Dropbox directory. Then on other computers I create a:

ln -s /home/myuser/Dropbox/.ssh_keys /home/myuser/.ssh_keys

I do the same with my .muttrc and any other configs I want to use. I even keep my wallpapers in the Dropbox folder where my awesome config file randomly loads one using:

awsetbg -f -r /home/myuser/Dropbox/wallpapers/