With this command below, you can find top 20 file and folder in VPS linux VULTr
top 20 largest files:
1 |
find . -type f -print0 | xargs -0 du | sort -n | tail -20 | cut -f2 | xargs -I{} du -sh {} |
Command file top 20 largest folder
1 |
find . -type d -print0 | xargs -0 du | sort -n | tail -20 | cut -f2 | xargs -I{} du -sh {} |
Leave a Reply