Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to check the available disk space in Linux

Shulou Source: shulou.com Published: 2022-06-01 06:14:18 10月07日 Update

This article is about how to check the available disk space in Linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Tracking disk utilization information is one of the daily to-do lists for system administrators (and others). Linux has some built-in users to help provide this information.

Df

The df command means "disk-free" and displays the disk space available and used on the Linux system.

Df-h displays disk space in a human-readable format.

Df-a shows the full disk usage of the file system, even if the Available field is 0.

Df-T shows disk usage and the file system type of each block (for example, xfs, ext2, ext3, btrfs, and so on).

Df-I displays used and unused inode.

Du

Du shows the disk usage of files, directories, etc., by default in kb units.

Du-h shows disk usage for all directories and subdirectories in a human-readable manner.

Du-a shows the disk usage of all files.

Du-s provides the total disk space used by a specific file or directory.

Ls-al

Ls-al lists the full contents and size of a particular directory.

Stat

Stat displays the size and other statistics of a file / directory or file system.

Fdisk-l

Fdisk-l displays disk size and disk partition information.

Thank you for reading! This is the end of the article on "how to check the available disk space in Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Tags: Disk file situation space directory system information content size check human more article help good practical item utilization unit command Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Shulou Information vpn macOS MySQL