When you are running out of disk space, you will want to know which are the biggest files in your home directory or in the disk itself.
This way if you find some big useless file you may erase it and recover the disk space.
This small command will do the job
du /home/user/* -s| sort -nr | head
Will show you the biggest directory and or file in your home directory.
If you want to list more lines just add the number of lines you want to list, at the end of the command.
du /home/user/* -s| sort -nr | head -50
There is also another way to do it, without using du
find . -type f -exec ls -s {} \; | sort -n -r | head -50 | cat -n
If this was useful for you, please consider making a donation, any amount is welcome, please proceed by clicking on the yellow donate button, thank you in advance.






Recent comments
2 days 10 hours ago
4 days 1 hour ago
4 days 4 hours ago
1 week 1 day ago
2 weeks 9 hours ago
2 weeks 3 days ago
2 weeks 5 days ago
3 weeks 8 hours ago
3 weeks 3 days ago
3 weeks 6 days ago