There is an immensely useful tool I use called ncdu that is designed for finding those pesky high disk-usage folders and files, and removing them. It's console ...
If your du has an option to display sizes in bytes (e.g. -b or -B 1 — note that this may have the side effect of counting actual file sizes rather than disk usage), add ...
du command: Estimate file space usage. a : Displays all files and folders. sort
Generally this isn't straight forward to do. The commands below can be used to do just that. Display folder sizes and sort in ascending order: $ du ...
du -sh * | sort -rh - (Shows the size of folders and files, sorted from highest to lowest Shows the size of folders and files, sorted from highest to ...
In the following example, we will use the du command to display the file and directory disk usage in the current directory, and then use the sort ...
It don't show the bigest files, it shows the sum of files into subdirectories. to show the top file sizes it is more efective do: find -type f | xargs -I{} du ...
I have a large number of files stored in ~/Downloads/ directory. How do I sort and print sizes in human readable format using du -h command ...
From your folder: find . -maxdepth 1 -type f -exec du -h {} + | sort --human-numeric -sort --reverse. You can set how deep it can look for files with ...
When troubleshooting any disk space problems on a server or just trying to find the largest directories, the du command is essential! You can ...