In this linux article, we will be looking how to check free space in linux shell.
Following command is used for it.
root@stargate21c: /home/nevada/test# df -h
Output is as follows:
root@stargate21c: /home/nevada/test# df -h
Filesystem Size Used Avail Use% Mounted on
udev 465M 0 465M 0% /dev
tmpfs 98M 7.5M 90M 8% /run
/dev/sda1 49G 4.5G 42G 10% /
tmpfs 486M 216K 486M 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 486M 0 486M 0% /sys/fs/cgroup
tmpfs 98M 88K 98M 1% /run/user/1000
root@stargate21c: /home/nevada/test# C
In above example, we used a "df" to look free space in our linux VM.