thalib Engineer/Designer

Calculate the size of directory in Linux

2016-11-14

Here is simple bash script to find how much size a directory take in the hard drive. Here we combine simple bash for loop with ls and du command to compute the size.

for i in `ls`; do
  du -sh $i
done

Previous Note: Quote - Investment

Comments