+3 votes
in Operating Systems by (71.8k 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

+1 vote
by (56.5k points)
selected by
 
Best answer

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


      ...