I'm having some files and folders in the "My Documents" directory. What are the commands to see the size of a file and directory in a terminal?
Ubuntu – How to see the memory occupied by a file and folder and also entire directory from terminal
command linedirectoryfilesmemory usage
Related Question
- Ubuntu – How to list the size of a directoy and subdirectories and files inside it by terminal
- Ubuntu – Using the terminal, how can I see the directory (and files) in an external HDD attached via USB port
- Ubuntu – How to close a program from the terminal
- Ubuntu – how to get a list of folders and number files in each folder side by side, in the current directory
Best Answer
This will summarise the sizes of the directories:
PS: Although all computer storage is technically "memory", this term is usually reserved for non-persistent storage like RAM and CPU cache.