+3 votes
in Operating Systems by (15.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 (7.0k points)

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

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