According to the analysis of the 100% alarm on disk space, df and 100% df are generated.Preface:Morning disk alarm just cleared tomcat and nginx logs, the command is similar to echo ""> show_web-error.log or> show_web-debug.log clear statement, then rm-rf drops a few tar.gz package, empty 30 GB space. The debug information of tomcat is also disabled. I just received an alarm again, and the disk is 100%. Wha
the difference between df-i and df-h
These days patrol the database, found that the script has df-h and Df-i command began not care, later found that the two are not the same
[ORACLE@HVR ~]$ Df-hFileSystem Size Used Avail use% mounted on/dev/mapper/vg_hvr-lv_root 26G 12G 1
, Blocks_percent_used, Mount_p OINT); } } return 0;}The results are as follows:Compile: g++-g-wall Main.CPPyou can generate a a.out file, the following is run A.out and DF-output Comparison of H::/tmp/tmp$DF-h file system capacity already available for use%mount point/dev/sda79.4G6.5G2.5G the% /None1.6G 300K1.6G1% /Devnone1.6G 212K1.6G1%/dev/Shmnone1.6G 296K1.6G1%/var/Runnone1.6G0 1.6G0%/var/L
Refer to the source code of a simple DF command written by DF code.
Finishing reprinted: http://blog.csdn.net/fjb2080/article/details/5990355
Author: feikong jingdu
The DF command can list the information of the attached disk or various files:
The following provides the source code of a simple DF command. The source c
Linux-command learning-df, linux-command-df
1. the df command is used to view the storage of the file system disk of the Linux server. You can use this command to obtain the disk space and the remaining space.
2. du: displays the disk space used by each file and directory.
3. Difference Between du and df
Du a
Analyze in detail why the statistical results of du and df are different. dudf statistics are different.
Today, I am asked why the statistical results of du and df are different. I gave him some explanation, and then I thought about writing an article to analyze and analyze the principles.
We often use du and df to obtain the occupied space of directories or file
DF, free disk, is used to display the disk usage of the file system. By default, the DF command will display all currently mounted file systems in each 1K unit, if you want to display the output of the DF command in a human readable format, such as "df-h" using the-H option.
In this article, we will discuss 11 differe
Introduced:The DF command in Linux can be used to display disk usage statistics for file systems currently on Linux systems. These tools make it easy to know which file systems consume much memory. In addition, if it is picked up and provides a specific file name as a parameter of the DF command, then it displays the disk usage statistics for the file system where the file resides. System administrators can
10 df commands for viewing disk space in Linux or Ubuntu
In Linux, you can use the command line tool named df to check disk space. The df command represents the disk file system. Using the df command, you can find the disk space summary information on Linux, such as available disk space and used disk space.
In this tu
Check disk space usage in Linux. The most common ones are du and DF. However, there are still many differences between the two, and sometimes their output results are even very different.1. How to remember these two Commands
Du-diskUsage
DF-diskFree2. df and du working principle 2.1 du working principle the du command will call the fstat system one by one for sta
Common Linux commands (27th)-df
In linux, the df command is used to check the disk space usage of the file system of the linux server. You can use this command to obtain the space occupied by the hard disk and the remaining space.
1.Command Format:
Df [Option] [file]
2.Command function:
Displays the available space of the specified disk file. If no file name is
When you look at disk space usage under Linux, the most common use is Du and DF. However, there is a big difference between the two, and sometimes the output is even very large.1. How to memorize these two commandsDu-disk UsageDf-disk Free2. How df and du Works 2.1 du works the du command treats the statistics file one-by-call Fstat this system call to get the file size. Its data is based on file acquisitio
The 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. 1. Command format: DF [Options] [file] 2. Command function: Displays the free space for the specified disk file. If no file name is specified, all available space for the currently
Linux Command details df check disk space usage of the file system, linuxdf
Command: dfCheck disk space usage of the file system
You can view the total capacity, usage, remaining space, and mount location of all mounted disks.
Syntax: # df [OPTION] [FILE]
FILE is an optional list of one or more path names. If this option is selected, the disk usage of the FILE system where the FILE is located is displayed
In linux, the du and df commands also asked me about the command for viewing the directory size in Linux. Now I have learned the commands du/df a while ago. A while ago, some sub-Tests encountered that the program could not be executed due to the full disk space. Therefore, df and du commands were used. View the directory size at www.2cto.com du, and view the dis
The 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.1. Command format:DF [Options] [file]2. Command function:Displays the free space for the specified disk file. If no file name is specified, all available space for the currently mounted file system will be displayed. By default
The df command parameter function in Linux: Check the file system for disk space consumption. You can use this command to get how much space the hard disk is occupied and how much space is left.
Syntax: DF [Options]
Description: The DF command in Linux shows the use of the I node and disk block by all file systems.
The various options for this command have the
In this article we'll look at the parameters of the DF command in Linux: Check the file system for disk space usage. You can use this command to get how much space the hard disk is occupied and how much space is left.
Syntax: DF [Options]
Description: The DF command in Linux shows the use of the I node and disk block by all file systems.
The various options fo
Check disk usage in Linux. df and du are the most common ones, but sometimes the results of DU and DF are different. Sometimes there is a big gap.
1. Explanation of the two Commands
Du -- disk usage
DF -- Disk Free
2. How du and DF work
2.1 du Working Principle
The du command calls the fstat system one by one for stat
In linux, the du and df commands also asked me about the command for viewing the directory size in Linux. now I have learned the commands du/df a while ago. A while ago, during the sub-test, the program could not be executed due to the full disk space. Therefore, the df and du commands were used .... In linux, the du and df
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.