I want to see how much total space / is taking, but I don't know how to do that. I can use ls -hal and add up the subtotals, or I can use fdisk to tell me the size of that partition, but is there a better way?
|
|
|
Are you asking about the total size of files/directories contained within If the former, use If the latter, you can do this with |
|||||||||||||
|
|
There are usually no files in the root directory, so I assume you want to know how much space is used in the root filesystem. The command for this is
With no arguments, If you want to know how much space is used by a directory and its subdirectories, that don't make up the full filesystem, use |
|||
|
|
Hence if you want to know:
|
|||
|
|