Filesystem information#
We can find out a lot about the filesystems on our system with a few commands. The mount
command shows us what mounts we have on our system. We've seen this above.
There's also the df
command, which means disk free
and tells us how much free disk space we have: df
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
I've used the -h
flag to make the sizes "human readable", otherwise you get everything in bytes and it becomes difficult to read.
Our root filesystem at /
has a maximum potential of 59G
, as we can see above under the Size
column. We've used 1.5G
(or 3%
) and as such, we have 57G
available.
We can also see all of our virtual filesystems (the ones in memory) like devtmpfs
. We can now also see their **total* sizes, with devtmpfs
being 993M
. This does not mean the filesystem using that much space, only that the filesystem's maximum size is 993M
(in this case.)
We can also use the du
command to see how much space a specific file or directory is using. Try this: cd /home && du -hs ./*
1 2 |
|
So, my user, ubuntu
, is only using a maximum of 32K
of space on the entire system.