df command examples
Displays the file system disk space
usage. By default df -k displays output in bytes.
$ df -k
Filesystem
1K-blocks Used Available Use% Mounted on
/dev/sda1
29530400 3233104 24797232 12% /
dev/sda2
120367992 50171596 64082060 44% /home
df -h displays output in human
readable form. i.e size will be displayed in GB’s.
linuxcare@rax-laptop:~$ df -h
Filesystem
Size Used Avail Use% Mounted on
/dev/sda1
29G 3.1G 24G 12% /
/dev/sda2
115G 48G 62G 44% /home
Use -T option to display what type of
file system.
linuxcare@rax-laptop:~$ df -T
Filesystem Type
1K-blocks Used Available Use% Mounted on
/dev/sda1 ext4
29530400 3233120 24797216 12% /
/dev/sda2 ext4
120367992 50171596 64082060 44% /home
0 comments:
Post a Comment