Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

du command

du # Calculates byte size of whole current directory including subdirs
du * # Calculates byte size of files individually
du -ah # shows calculations of files and subfiles recursively
# -m -> shows byte size in megabytes
# -g -> shows byte size in gigabytes
# -h -> shows human readable notation
 
PREVIOUS NEXT
Tagged: #du #command
ADD COMMENT
Topic
Name
4+8 =