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

Linux to check the usage of native disks

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article will explain in detail about linux viewing the use of local disks. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

1. View the free space of disk files 1. Brief introduction of the df command

The function of the df command in linux is to check the disk space usage of the file system of the linux server. You can use this command to get information such as how much space the hard disk is occupied and how much space is left.

2. Command format:

Df+ [options] + [File]

3. Use examples

View the current directory disk usage:

Df-h

View the disk usage of the specified directory:

Df-h / data/ II. Specific view of folder occupancy 1. Introduction to the du command

The du command in Linux is used to display the size of the directory or file, and du displays the disk space occupied by the specified directory or file.

2. Command format:

Du [- abcDhHklmsSx] [- L

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