Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux disk usage by directory one level

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: #linux #disk #usage #directory #level
ADD COMMENT
Topic
Name
4+5 =