Answers for "check folder size bash"

4

shell get size of directory

du -h your_directory
# gives you the size of your target directory.
du -hcs your_directory
# If you want a brief output.
Posted by: Guest on March-26-2020
0

command line size of directory

# The -s flag will insure that each specific entry is calculated, 
# and the -h flag will make the output in human readable size format
du -sh /directory/path
Posted by: Guest on December-02-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language