When you're trying to clean up your filesystems and reclaim some space, one of the first things you'll want to do is to confirm the largest directories and individual files you have. This can be easily done using two Unix commands: find command and du command. Find files larger than a certain size It's very simply to find files which are larger than a specified size. The find command accepts a size parameter, and you can specify the limits for file sizes in your command line. This example finds all the files under /etc directory which are larger than 100k: root@ubuntu# find /etc -size +100k /etc/ssh/moduli /etc/ssl/certs/ca-certificates.cr /etc/bash_completio If we look at their sizes, they really are above 100k: root@ubuntu# ls -l /etc/ssh/moduli /etc/ssl/certs/ca-certificates.crt /etc/bash_completio -rw-r--r-- 1 root root 215938 Apr 10 2007 /etc/bash_completion -rw-r--r-- 1 root root 132777 Feb 19 2007 /etc/ssh/moduli -rw-r--r-- 1 root ro...
Amazon Cloud Site provide information about AWS(Amazon Cloud), Linux server tips, tricks & tutorials and DevOps with full statistics also information about Linux systems, OS, server any other web-hosting as well as AWS information, exam tips and may more.