Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to check the available disk space in Linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report