linux:shell_commands:du

du examples

# du -a /home | sort -n -r | head -n 5

# du -a | sort -n -r | head -n 5 # du -hs * | sort -rh | head -5 # du -Sh | sort -rh | head -5

# find -type f -exec du -Sh {} + | sort -rh | head -n 5 # find /home/tecmint/Downloads/ -type f -exec du -Sh {} + | sort -rh | head -n 5 # find /home/tecmint/Downloads/ -type f -printf “%s %p\n” | sort -rn | head -n 5

Enter your comment:
L C J V F
 
  • linux/shell_commands/du.txt
  • Last modified: 2020-05-15 13:52
  • (external edit)