Size of directory

Size of directory

du -sh /var
  • s = only the total size
  • h = sizes in a human-readable format
  • /var - The path to the directory you want to get the size