Directory Sorting and File Size’s in Ubuntu

If you’ve ever had a harddrive randomly fill up on you, you’ll know the importance of a recursive call to iterate through your directories looking for big files. Ubuntu has a fairly easy way to do this. du -k | sort -nr | more The above code will recursively iterate through the directory you are in and all directories in it, and find the largest directories and files. It will sort them largest to smallest. So if your /var/log folder...

Read More