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 size of space in linux

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

Share

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

Today, what the editor shares with you is the operation of linux to view the size of the space. I believe many people do not know much about it. In order to make you understand better, I have summarized the following contents for you. Let's look down together. I'm sure you'll get something.

The Df command allows the linux system to view the file system in terms of disk partitions, and you can add parameters to view the information of the remaining disk space.

Command format: df-hl

The display format is:

Taking the output above as an example, it means:

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

The following is an explanation of the relevant commands:

Df-hl View disk remaining space df-h View the partition size of each root path du-sh [directory name] return the size of the directory du-sm [folder] return the total M of the folder du-h [directory name] View all file sizes under the specified folder (including subfolders)

On the linux view space size of the operation method to share here, I hope that the above content can have a certain reference value, you can learn to apply. If you like this article, you might as well 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