+3 votes
in Operating Systems by (10.3k points)
I want to check the total size of a directory including its files. How can I do in linux from command line?

1 Answer

0 votes
by (3.7k points)

You can use du command to get the size of the directory.

du -hs /path/to/directory
E.g.
root@Lenovo-G510:~$ du -hs Documents
3.5G    Documents

      ...