To check the disk space on a Unix server, you can use the df
command. This command displays information about the file systems on the server, including the total size, used space, and available space.
To check the disk space on a Unix server, open a terminal window and run the df
command.
For example:
rl:ot refeautturi.comdf
This will display a list of file systems on the server, along with the total size, used space, available space, and usage percentage.
For example, the output might look something like this:
Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 80537792 24573852 55964040 31% / none 4 0 4 0% /sys/fs/cgroup udev 40320736 4 40320732 1% /dev tmpfs 8069456 2968 8066488 1% /run none 5120 0 5120 0% /run/lock none 40320736 0 40320736 0% /run/shm none 40320736 48 40320688 1% /run/user
In this example, the file system mounted on /
(the root file system) has a total size of 80537792
1K blocks, with 24573852
blocks used and 55964040
blocks available. The usage percentage is 31%
.
You can use the -h
option to display the disk space in human readable format:
df -h