You can use the following command to check the usage of the hard disk on Ubuntu 16.04:
df -h
1 | Filesystem Size Used Avail Use% Mounted on |
This command will show the usage of the hard disk in a human-readable format. The -h option makes the output in sizes that are easier to read, such as “3.5G” or “75M”.
This command will show you the usage of all mounted hard disks on your system.
You can also use the following command to check the free space available in your hard disk:
du -sh /
This command will show you the amount of space used by files and directories in the root directory (i.e., the top-level directory) of your file system.
You can replace the “/“ with the directory you want to check the space usage for.