ubuntu:directory:find_largest_and_smallest_directories
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:directory:find_largest_and_smallest_directories [2020/02/25 22:22] – peter | ubuntu:directory:find_largest_and_smallest_directories [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ubuntu - Directory - Find largest and smallest directories ====== | ====== Ubuntu - Directory - Find largest and smallest directories ====== | ||
+ | |||
+ | ===== Find Largest Directories And Files ===== | ||
To find out the top largest ten directories and files in the current working directory, just run: | To find out the top largest ten directories and files in the current working directory, just run: | ||
Line 57: | Line 59: | ||
You have now basic idea about how to find the largest files and directories. | You have now basic idea about how to find the largest files and directories. | ||
+ | |||
+ | |||
+ | <code bash> | ||
+ | du -a -h –max-depth=1 | sort -hr | ||
+ | </ | ||
---- | ---- |
ubuntu/directory/find_largest_and_smallest_directories.1582669357.txt.gz · Last modified: 2020/07/15 09:30 (external edit)