Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to check the remaining space on Linux disk

Shulou Source: shulou.com Published: 2022-06-01 14:55:34 10月03日 Update

This article mainly explains "how to check the remaining space on Linux disk". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "how to check the remaining space on Linux disk"!

The Df command is used to view the file system in terms of disk partition. You can add parameters to view the information of the remaining disk space. Command format:

Df-hl

The display format is:

File system capacity used available used% mount point

/ dev/hda5 487M 120M 342M 27% /

/ dev/hda1 981M 21M 911m 3% / boot

None 125m 0 125m 0% / dev/shm

/ dev/hda2 29G 4.9G 23G 18% / home

/ dev/hda3 20G 4.8G 14G 27% / usr

/ dev/hda7 24G 510M 22G 3% / var

/ dev/hdb2 75G 75G 0 100% /

/ dev/hdb2 75G 75G 0100% /, which means:

The second hard disk (b) and the second partition (2) of the HD hard disk interface have a capacity of 75g, 75g is used, and the availability is 0, so the utilization rate is 100%, which is mounted to the root partition directory (/)

At this point, I believe you have a deeper understanding of "how to check the remaining space on Linux disk". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Disk space remaining content command capacity file format hard disk system learning practical deeper information interest utilization units parameters practicality actual Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Linux Shulou Information MySQL Xiaomi