- Joined
- Apr 15, 2016
- Messages
- 612
- Points
- 28
Are there any commands that allow me find top 10 large files in my VPS Linux?
I tried some ways but not successfully
I tried some ways but not successfully
This command will display top 10 biggest files on whole your Linux.du -a /var | sort -n -r | head -n 10
find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n
I use this. Seems to be faster.cd /
for i in *; do echo -e "$(find $i | wc -l)\t$i"; done | sort -n
Nice command @SolaDriveI'd suggest using this: du -sh * | sort -h
It will show you the biggest files in the directory in order of biggest to smallest.
What does it mean in your command?I use this. Seems to be faster.Code:cd / for i in *; do echo -e "$(find $i | wc -l)\t$i"; done | sort -n
Nice command @SolaDrive
What parameter can I show from smallest to biggest files?
What does it mean in your command?
for X in $(du -s * | sort -nr | cut -f 2); do du -hs $X ; done
Did you try?Are there any commands that allow me find top 10 large files in my VPS Linux?
I tried some ways but not successfully
ForumWeb.Hosting is a web hosting forum where you’ll find in-depth discussions and resources to help you find the best hosting providers for your websites or how to manage your hosting whether you are new or experienced. You’ll find it all here. With topics ranging from web hosting, internet marketing, search engine optimization, social networking, make money online, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.
The world's smartest hosting providers come here to discuss & share what's trending in the web hosting world!