In linux, the results of df and du reports are different-Linux general technology-Linux technology and application information. The following is a detailed description. There is a script at work
Regularly log on to the server. df: Check partition usage.
If the usage rate exceeds 80%
Alert (email sms)
I recently found a machine reported
Wait for a while and process it (directly rm file)
Report again a
Original
Detailed DF command usage
A: displays the disk usage of all file systems and partitions.
I: displays the I-nodes usage.
K: The size is represented by K (default)
T: displays the disk usage of all partitions in a file system.
X: displays the disk usage of all partitions of a file system.
T: displays the file system name of each partition.
Common commands:DF-Hi
Operation Details
ReferenceThe command
View the file and folder size in Linux (df amp; du)Df
Usage: df [Option]… [File]…Displays the information of the file system where each file is located. All file systems are displayed by default.
Common options-H,-human-readable size displayed as human readable form (e.g., 1 K 234 M 2G)
Example
[Root @ www ~] # Df-H f
Df command help usage: df [option]... [file]... the information of each file system is displayed. by default, all file system length options must be used when short options are used. option-a and -- all include the help information of the file system-B with 0 blocks and the -- bloc df command.
Usage: df [option]... [f
)--si is similar to-H, but uses 1000 as the base instead of 1024 when calculating- k equals--block-size=1k-L, --count-links If it is a hard connection, calculate its dimensions multiple times- m equals--block-size=1m-L, --dereference Find out the true destination of any symbolic link indication-P, --no-dereference does not follow any symbolic link (default)-0,--null each blank line as 0 bytes instead of line break4 . Command instance:1, calculate the file size in/etc directory[Email prot
When you have identified and removed the bulk file from the Linux system, then use DF-H to see if the usage remains the same. You can try the following methods to solve1. Find out which deleted files the process is occupying# See which processes are still being consumed by the files ls -ld /proc/*/fd/* 2>1 | fgrep ' (deleted)2. After consideration, execute the KILL command3. Execute DF to see if it has been
DF-HL View disk remaining space
Du-sm folder
Returns the total m of this folder
More features please view:
DF--help
Du--help
Du-sh (the name of this directory) is the size of this directory.
Use the du command to view a directory, such as viewing the/home/kuuyee directory for disk space size you can use the following command:
# Du/home/kuuyee-sh
There are hundreds of build projects in my home direc
Learn about basic Linux commands: df commands and du commands-general Linux technology-Linux technology and application information. For more information, see the following. Df command
This interface is used to view the status information of the Linux File System and display the capacity, used, unused, and mount points of each partition.
For example
Df-k dis
the version information and exits.[Size] can be the following unit (an integer can be added before the Unit ):KB 1000, K 1024, MB 1000000, M 1048576, G, T, P, E, Z, and Y.Report du errorsGNU coreutils project home page: GNU software general help: Report du translation errors to (2) Ubuntu command for viewing disk space The DF-h df command is used in Linux to view the file system by disk partition. You can
View the folder size in Linux and the remaining disk space (du/df)1. Introduction
View the directory size in du, and view the disk usage in df.2. du
Disk usage(1) Basic functionsRecursively view the size of all files in a folder(2) common parameters:-H,-human-readable Display dimensions in a readable manner (for example, 1 K 234 M 2G)-S,-summarize only calculates the total usage of each parameter in the Com
former is all the remaining space on the hard disk, and the latter is
The ext3 file system gives the root user 5% exclusive space, so here is not
. It should be emphasized that the size of each block is generally 4 K (× this sentence is incorrect, not necessarily 4 K. The correct method is: total size = SFs. f_blocks × F _ bsize, that is, the number of blocks × the size of each block. The unit is bytes, that is,/1024/1024/1024 is the unit of GB. In addition, the problem should be noted that SFS
DF: Lists the overall disk usage of the file system;Du: Evaluating the disk usage of the file system (commonly used to estimate the capacity of the catalog)DF parameter:-A: List all file systems, including system-specific/proc and other file systems-K: Displays each file system in KB capacity-M: Display the file system in MB capacity-H: Self-display in GB,MB,KB and other formats that are easier for people t
DF looks at the size of the first-level directory, but cannot view the size of the file. Du can view the directory or file size. 1 Basic usage of DFThe DF command displays the total space of all current file systems and the currently available space, using the following:-A All File system list-h easy to read mode display-H equals "-H", but the formula, 1k=1000, rather than 1k=1024-I display inode informati
to the directory;2, can cross file system;3, will not increase the number of links linked to the file;4, the size of the specified path contains the number of characters;
Du: Show file sizeDu-s: Displays the entire directory size[Email protected] ~]# du-hs/etc/39m/etc/Du-h[Email protected] ~]# du-h/etc/324k/etc/pki/ca-trust/extracted/openssl184k/etc/pki/ca-trust/extracted/java620k/etc/pki/ca-trust/extracted/pem1.2m/etc/pki/ca-trust/extracted4.0k/etc/pki/ca-trust/source/blacklist4.0k/etc/p
Many people say that there is a lot of knowledge on the Internet, why do you want to repeat these things in your blog?What I want to say is that other people write things that others understand, but also the summary of others learning process, for their own, write their own blog The main purpose is to record their own learning process, at the same time on their own study of things to summarize, when after a period of time can look back, I have experienced, This is also a kind of learning, but al
Tags: bin localhost 3.4 available art col color Linux disk spaceThe function of the DF command in Linux is to check the disk space usage of the Linux server's file system. You can use this command to get information about how much space the hard disk is taking up, and how much space is left.Grammar:DF [-ahikhtm] [directory or file name]Options and Parameters:
-a: Lists all file systems, including system-specific/proc File system
-k: K
DF
Syntax: DF [-ahikmt]Note: displays the status of the file system or displays the status of all file systems (default value)
Parameters:
-A, -- all contains all file systems with 0 blocks-H, -- human-readable uses a human-readable format (the preset value does not include this option ...)-I, -- inodes: List inode information, not list used Blocks-K, -- kilobytes is like -- block-size = 1024-M, -- megabyte
One linux Command every day (33): df command link: One linux Command every day (1): ls command http://www.bkjia.com/ OS /201210/163049.html#linuxlinuxcommand every day (2): cd command serial (3 ): pwd command Export (4): mkdir command http://www.bkjia.com/ OS /201210/1620.3.html#a linuxcommand every day (5): rm command Export (6): rmdir command http://www.bkjia.com/ OS /201210/164017.h Tml; one linux Command every day (7): mv command running (8): cp c
Linux large files have been deleted, but df does not reduce the used space.Linux large files have been deleted, but df does not reduce the used space.
When the disk is full, you are about to delete some large files.
So I used ncdu to check the files that are currently occupying a large amount of resources in the system. If they are at the source, delete them,Check the disk situation with joy.
The disk does
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.