NameDFGrammarDF [-options]parameters-A displays disk usage for all file systems, including 0 block file systems, such as the/proc file system.-K is displayed in K-byte units.-I displays the I-node information, not the disk block.-T displays disk space usage for each file system of the specified type.-x Lists disk space usage (contrary to the T option) that is not a file system of a specified type.-T displays the file system type.working with instanceslist disk space usage for each file system
D
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 DetailsThe reference command
In Linux, check the folder size, disk space remaining (du/df), and dudf.1. Introduction
View the directory size in du, and view the disk usage in df.2. du
Disk usage(1) Basic functions Recursively 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
Questions :Using the DF command to view, a partition usage has reached 100%, but with the du command to count the partition, it is found that the remaining 10G of the partition space is available. Instance:Analysis: If a file is deleted when it is open, the system will still assume that the file still exists. So DF will still be when these files are still present and included in the statistics.Solve: grep
DF commandDF View the total capacity, usage capacity, remaining capacity, etc. of mounted disks. It can be displayed by default in units of K without any parameters. [[email protected] ~]# DFFilesystem 1k-blocks used Available use% mounted on/dev/sda3 18244476 1603980 15707072 10%/Tmpfs 506228 0 506228 0%/dev/shm/DEV/SDA1 194241 27180 156821 15%/bootDF Common options are-I,-H,-K,-M-I view inodes usage status[Email protected] ~]#
When the size of the disk exceeds the standard, there will be alarm prompts, if you know the DF and du command is a very wise choice.DF can view the first-level folder size, usage scale, file system and its hang-in points, but there is nothing to file. Du can view the size of files and folders.Brief introductionthe DF command can show the available space and usage for all current file systems[Email protecte
DF (disk free): Lists the overall disk usage of the file systemUsage:DF [-AKMHI] [directory or file name]Parameters:-A: List all file systems, including system-specific/proc and other file systems-K: Displays the file system in KB capacity;-M: Displays the file system in MB capacity; -H: In the people easier to read GB, MB, KB and other formats to display their own;-I: Do not use the hard disk capacity, but the number of inode to display.Common usage
In Linux, when the middleware log file is deleted, df shows that the disk space is still not released. when the disk size exceeds the standard, an alarm is triggered. in this case, it is wise to master the df and du commands. Df allows you to view the size, usage ratio, file system, and Mount point of a level-1 folder.
In Linux, when the middleware log file is de
In Linux, the df and du commands for viewing files and folders will trigger an alarm when the disk size exceeds the standard. In this case, it is wise to master the df and du commands. Df allows you to view the size, usage ratio, file system, and its mount point of a level-1 folder, but there is nothing to do with files. Du allows you to view the file and folder
PS: Some time ago, children's shoes asked me, why his server with DF and du command query file size display is different. In fact, these two command query principle is not the same, the following is a brief analysis:1, under normal circumstances, DF and du output results will have a gapThe Du-sh command increments the total number of blocks used by the file system by adding the number of blocks used by all
1.10th bit DF of the flag register, direction sign bit. In the string processing instruction, control the increment and decrement of si,di after each operationDf=0, after each operation, Si, di addDf=1, after each operation, Si, di decreasesWe are able to describe the functions of MOVSB in the assembly syntax such as the following:mov es:[di],byte ptr ds:[si]; 8086 does not support this instruction, only for descriptive narrative useSuppose
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
/log/sms/bak]$ TAR-ZXVF sms_mt.tar.gz
Unpack the SMS_MT.TAR.BZ2 package.
root@[/mas/log/sms/bak]$ TAR-JXVF sms_mt.tar.bz2
1.2 telnet command (SSH)telnet command: SSH login user @ip-p port
For example: Log on to the 172.16.9.28 server from a server, SSH port is 8015
root@[/root]$ SSH mas@172.16.9.28-p8015
mas@172.16.9.28 ' s password: (the MAS user password for 172.16.9.28 server is filled in here)
Last login:wed Aug 5 09:04:11 2009 from 172.18.25.203
mas@[/mas]$
1.3 Remote Transfer Command (SC
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
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.