What is Disk space usage?
How to Check Disk Space Usage in Linux?
Collapse
X
-
What is Disk space usage?
Disk space usage indicates how much space a system uses to perform various tasks or run a program.
To check Linux disk space usage:
Use the 'df' command in the terminal to check disk space. The output shows available disk space and space used by the system.
'--output' lets you check disk usage in a specific format.
'awk' is used to check disk usage in GB.
Scott Harwood
AccuWebHosting | Affordable Forex VPS Hosting Provider
-
The percentage of a computer's storage that is now being used is referred to as disk usage (DU). In contrast, the total amount of space that a specific disk is capable of storing is known as disk space or capacity. Kilobytes (KB), megabytes (MB), gigabytes (GB), and/or terabytes are often used units to describe disk utilisation (TB).
Comment
-
To check the disk space usage in Linux, you can use the “df” command. Here are the steps:
1. Open the terminal on your Linux system.
Type “df –h” and press Enter.
2. This will display a list of all the partitions on your system along with their disk space usage. The “-h” flag is used to display the disk space usage in a human-readable format.
3. You can also specify a specific partition to check its disk space usage. For example, to check the disk space usage of the /dev/sda1 partition, type:
df -h /dev/sda1
4. This will display the disk space usage of the /dev/sda1 partition only.
5. In addition to “df”, you can also use the du command to check the disk space usage of a specific directory. For example, to check the disk space usage of the /home/user/Documents directory, type:
du -sh /home/user/Documents
6. This will display the disk space usage of the /home/user/Documents directory in a human-readable format. The “-s” flag is used to display the summary of the disk space usage, and the “-h” flag is used to display it in a human-readable format.
Comment
Comment