In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
The knowledge of this article "linux how to query disk" is not understood by most people, so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "linux how to query disk" article.
In linux, you can use the df command to query the disk, which is used to display the disk usage statistics of the file system on the linux system. When the parameter is set to "- h", the disk display format is easy to understand and the syntax is "df-h".
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
How does linux query disks?
The Linux df (English spelling: disk free) command is used to display file system disk usage statistics currently on Linux systems.
Grammar
Df [options]... [FILE]...
File-a,-- all contains all file systems with 0 Blocks
File-block-size= {SIZE} uses a Blocks of {SIZE} size
The file-h,-- human-readable uses a human-readable format (the default value is not added with this option.)
The file-H,-- si is a lot like-h, but in units of 1000 instead of 1024
File-I,-- inodes lists inode information, but does not list block used
File-k,-- kilobytes is like-- block-size=1024.
File-l,-- local restricts the file structure listed
File-m,-- megabytes is like-- block-size=1048576
File-do not sync before no-sync gets the information (default value)
File-P,-- portability uses the POSIX output format
Document-sync sync before obtaining information
File-t,-- type=TYPE restricts the TYPE of the file system
File-T,-- print-type shows the form of the file system
File-x,-- exclude-type=TYPE limits listing file systems and does not display TYPE
File-v (ignore)
File-- help shows this helper and leaves
File-version outputs version information and leaves
Example
Displays disk usage statistics for the file system:
# df Filesystem 1K-blocks Used Available Use% Mounted on / dev/sda6 29640780 4320704 23814388 16% / udev 1536756 4 15367552% / dev tmpfs 617620888 616732.1% / run none 512005120 0% / run/lock none 1544044156 1543888 / run/shm
The first column specifies the name of the file system, and the second column specifies a specific file system 1K-block 1K is 1024 bytes of total memory. The amount of memory specified by the available and available columns, respectively, in use.
Use columns to specify the percentage of memory used, while the last column is "mounted at" the mount point of the specified file system.
Df can also display the file system information used by the disk:
# df test Filesystem 1K-blocks Used Available Use% Mounted on / dev/sda6 29640780 4320600 23814492 16% / above is about the article "how to query disk in linux". I believe you all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about it, please follow the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.