Find big files in CentOS Print

  • 344

First choice what map you want to scan, lets scan map /TMP:

cd /tmp

Now we can scan it:

for i in G M K; do du -ah | grep [0-9]$i | sort -nr -k 1; done | head -n 11

You will get a result like this:

[login@ tmp]# for i in G M K; do du -ah | grep [0-9]$i | sort -nr -k 1; done | head -n 11
50M     .
44K    ./magento


du -a /var | sort -n -r | head -n 10
du -hsx *| sort -rh | head -10


find /home/* -type f -printf "%s\t%p\n" | sort -n | tail -20

 

find /home/*/domains/*/public_html/backups/*  -type f -printf "%s\t%p\n" | sort -n | tail -20

find /var/* -type f -printf "%s\t%p\n" | sort -n | tail -20

find /usr/* -type f -printf "%s\t%p\n" | sort -n | tail -20


Was dit antwoord nuttig?

« Terug