To display disk usage for a folder in human readable format
# du -h /home
To display disk usage for a folder in human readable format (including
all subdirectories along with hidden files)
# du -ah /home
To display disk usage for a folder in KB
# du -k /home
To display disk usage for a folder in MB
# du –m /home
To display disk usage in human readable format and total at end
line
# du –ch /home
To display disk usage by excluding some files or folders
# du -ah
--exclude="*.txt" /home/
To display the disk usage based on modification of time, use the
flag “–time”
# du -ha
--time /home/
No comments:
Post a Comment