conforming available space

dotKer

Member
Joined
Aug 16, 2019
Messages
69
Reaction score
14
Credits
0
In window, If I do right-click on C:, - and open Attribute, I can get the information about total space, used space,and available space.
Total space= used space+available space

I like to conform how many space is now available on xubuntu.
How can I check the total space, used space, and available space of HDD, ie C: on xubuntu?
 


Thank you, arochester, for the link which suggest the command "df -h"

As I enter "df-h",
It shows the following

ilesystem Size Used Avail Use% Mounted on
udev 1.5G 0 1.5G 0% /dev
tmpfs 295M 1.3M 294M 1% /run
/dev/sda5 32G 7.1G 23G 24% /
tmpfs 1.5G 57M 1.4G 4% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1.5G 0 1.5G 0% /sys/fs/cgroup
/dev/loop0 4.3M 4.3M 0 100% /snap/tree/17
/dev/loop1 85M 85M 0 100% /snap/core/7395
tmpfs 295M 12K 295M 1% /run/user/1000

but I am afraid that I can't understand it.
Where is total size?
Where is used size?
Where is avaiable size?
 
"slash" is a directory that looks like this / (nothing after the slash)
/dev/sda5 is your "slash" directory. At the end of the line you see a /
This is more or less your c: drive in windows.
At least from what you are displaying above, you have no other disk partitions.
except for swap.

You have a line that looks like this.

/dev/sda5 32G 7.1G 23G 24% /

This is the 5th partition on disk /dev/sda (that's why it says sda5)
This partition is 32G. I see this in the second column.
It is using 7.1G, I see this in the third column.
It has 23G available (empty, un-used space), I see this in the 4th column.

If you look at the top you will see this.

Filesystem Size Used Avail Use% Mounted on

/dev/sda5 is the filesystem
32G is the Size
7.1G is Used
23G is Avail
24% is the USE%. You are using 24 percent of this partition.
/ is the "Mounted on". /dev/sda5 is mounted at /

/ is the "root" of your file system. It is kind of like a c:\ drive in windows.

Sometimes, you might have other file systems mounted also. But for now
It appears this is the only "non-swap" filesystem you have.
 

Members online


Top