How to find Top 10 Big files/Folder in the system?
Used following command to find out the top 10 big files in the system But it is having its own limitations as it consider files and directories both.
Code:
du -a / | sort -n -r | head -n 10 1)top 10 big files. 2)top 10 big directories. File size with human readable output. as executing Code:
# du -a / | sort -n -r | head -n 10 but when i add -h option for human readable file size its giving me wrong output. Confused why its happening any clue? Code:
# du -ha / | sort -n -r | head -n 10 |
You ca also give below command
du -sh *|grep M|more or du -sh *|grep G|more G for files which are in gigabytes and M for file in megabytes |
Quote:
Anyway thanks for sharing. |
Hi,
try this: Code:
du -ha / | sort -h -r | head -n 10 |
Quote:
Code:
# du -ha / | sort -h -r |
Quote:
Code:
$ sort --version Code:
sort --help |
Quote:
The simplest thing is to stick with the non-human-readable form, but, if you really wanted you could
|
Quote:
Code:
# sort --version |
Quote:
|
Quote:
However I would love to update it to latest version.Any idea on how do i do it? |
Quote:
|
All times are GMT -5. The time now is 06:44 AM. |