I know you are able to see the byte size of a file when you do a long listing with ll or ls -l . But i want to know how much storage there is in a directory including the files in that directory and the subdirectories there etc I don't want to be in control of the number of files but rather the storage space that these files take up

So i want to know how much storage is in a certain directory recursively? I'm guessing if there's a command the command would be bytes

Best Answer

Try doing this .

du -s dir


du -sh dir

needs -h support, depends of your OS.


man du