Check the size of a directory
How do you Check the size of a directory in linux?
The du
command will come handy for this task. Let's say we want to know the size of the directory named recommandations
, we would run the following command
du -sh recommendations
It would return the output :
9.9M recommendations