Home>Article>Operation and Maintenance> How to check how much space the hard disk has in centos

How to check how much space the hard disk has in centos

WBOY
WBOY Original
2022-02-08 16:51:50 29055browse

In centos, you can use the df command to check how much space the hard disk has. This command can display the current file system disk usage on the system. When the parameter is set to "-h", it is more convenient to check the hard disk. For spatial conditions, the syntax is "df -h".

How to check how much space the hard disk has in centos

The operating environment of this article: centos 6.4 system, Dell G3 computer.

How to check how much space the hard disk has in centos

df (full English spelling: disk free) command is used to display the current file system disk usage statistics on the system.

Syntax

df [选项]... [FILE]...
  • File-a, --all Contains all file systems with 0 Blocks

  • File- -block-size={SIZE} Use {SIZE} size Blocks

  • file -h, --human-readable Use human-readable format (default value is not to add this Options...)

  • File -H, --si is like -h, but uses 1000 instead of 1024

  • File-i, --inodes List inode information, do not list used blocks

The example is as follows:

How to check how much space the hard disk has in centos

Recommended tutorial: "centos tutorial"

The above is the detailed content of How to check how much space the hard disk has in centos. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn