How to check the disk space in centos7
Execute command:
df -hl
Display:
文件系统 容量 已用 可用 已用% 挂载点 Filesystem Size Used Avail Use% Mounted on /dev/hda2 45G 19G 24G 44% / /dev/hda1 494
Other disk related commands are as follows:
Check the remaining disk space
df -hl
View the partition size of each root path
df -h
Return the size of the directory
du -sh [目录名]
Return the total number of M in the folder
du -sm [文件夹]
View the specified folder All file sizes (including subfolders)
du -h [目录名]
View hard disk partitions
#sudo fdisk -l
View IDE hard disk information
#sudo hdparm -i /dev/hda
View STAT hard disk information
#sudo hdparm -I /dev/sda
or
#sudo apt-get install blktool #sudo blktool /dev/sda id
Check the remaining hard disk space
#df -h #df -H
Check the directory occupied space
#du -hs 目录名
Recommended related tutorials: centos tutorial
The above is the detailed content of How to check the disk space in centos7. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Windows 11 has strict requirements, and after struggling to obtain that storage, losing your hard drive and data would be a shame. Well, we have good news that can help you buffer against hard drive failure. Using built-in Windows tools, you can copy all your data from one drive to another. This way, if one drive fails, you can mirror and rebuild the original data on the replacement drive. Can Windows 11 do RAID? With Windows Storage Spaces feature, you can perform RAID on Windows 11. This feature allows you to create multiple virtual disks using a hard drive connected directly to your computer without degrading performance. Benefits of Raid: Reduce the cost of disk

When creating a virtual machine, you will be asked to select a disk type, you can select fixed disk or dynamic disk. What if you choose fixed disks and later realize you need dynamic disks, or vice versa? Good! You can convert one to the other. In this post, we will see how to convert VirtualBox fixed disk to dynamic disk and vice versa. A dynamic disk is a virtual hard disk that initially has a small size and grows in size as you store data in the virtual machine. Dynamic disks are very efficient at saving storage space because they only take up as much host storage space as needed. However, as disk capacity expands, your computer's performance may be slightly affected. Fixed disks and dynamic disks are commonly used in virtual machines

RAID or Redundant Array of Independent Disks is a data storage technology in which multiple external drives are combined into one. It was widely used when large hard drives were expensive, but many people still prefer the RAID external drive method. There are several levels of RAID, each serving a specific purpose. Keep in mind that the average user doesn't have to delve into the complexity, a simple setup of RAID0 or RAID1 should work fine. Reasons to consider raiding an external drive: Improved PC performance Easy to configure, cheaper than existing alternatives Faster data reading and writing Efficient backup solution through mirroring How to RAID an external drive on Windows 11? Before RAID external hard drives, you need to pay attention to the following first things

When loading CentOS-7.0-1406, there are many optional versions. For ordinary users, they don’t know which one to choose. Here is a brief introduction: (1) CentOS-xxxx-LiveCD.ios and CentOS-xxxx- What is the difference between bin-DVD.iso? The former only has 700M, and the latter has 3.8G. The difference is not only in size, but the more essential difference is that CentOS-xxxx-LiveCD.ios can only be loaded into the memory and run, and cannot be installed. Only CentOS-xxx-bin-DVD1.iso can be installed on the hard disk. (2) CentOS-xxx-bin-DVD1.iso, Ce

If you want to convert a dynamic disk to a basic disk in Windows 11, you should create a backup first as the process will erase all data in it. Why should you convert dynamic disk to basic disk in Windows 11? According to Microsoft, dynamic disks have been deprecated from Windows and their use is no longer recommended. Additionally, Windows Home Edition does not support dynamic disks, so you will not be able to access these logical drives. If you want to combine more disks into a larger volume, it is recommended to use Basic Disks or Storage Spaces. In this article, we will show you how to convert dynamic disk to basic disk on Windows 11 How to convert dynamic disk to basic disk in Windows 11? In the beginning

Open the centos7 page and appear: welcome to emergency mode! afterloggingin, type "journalctl -xb" to viewsystemlogs, "systemctlreboot" toreboot, "systemctldefault" to tryagaintobootintodefaultmode. giverootpasswordformaintenance(??Control-D???): Solution: execute r

We want to check the hard disk usage in the system. How to check the Ubuntu system? Let's take a look at the tutorial on checking the hard disk usage in Ubuntu system. 1. On the system, click on the lower left corner of the desktop, as shown in the picture. 2. In the system, click Utilities, as shown in the figure. 3. Click Disk Usage, as shown in the picture. 4. Then you can see the disk usage, that is, the disk in the middle is your computer’s hard drive, as shown in the picture. The small print below the disk shows the usage. 5. Or click the disk on the utility program, as shown in the picture. 6. Then under the capacity, you can see the hard disk usage, as shown in the picture. The following is the text version to view disk usage: df-h The results are as follows: FilesystemSizeUsedAvailU

Drive failure is a serious issue that may render your files unrecoverable or your boot drive non-working, so that is why many users choose to create a mirrored volume on Windows 11 as a way to prevent this. If you're not familiar, a mirrored volume is an exact copy of another drive that can be used as a backup in the event of a disk failure. It's a great backup solution, and today we'll show you how to create it on your PC. What are the prerequisites for setting up a mirrored volume? Two dynamic disks of similar size. The mirror drive can be larger than the source drive. RAID support is available on almost every modern PC. The mirror drive should be unallocated and do not have any volumes. How to create a mirrored volume in Windows 11? 1.Use
