Vi. Linux/UNIX operating command accumulation [kill, netstat, df, du], netstatduIn Linux/UNIX, users often use the text interface to set the system or operating system. The author is constantly in touch with this command during his work, therefore, this article has been specially developed, prepared, and started. This article mainly records some of the operating
-tDescription:Lists the types of file systems.-T file system type.Extensions:-H more Current disk space and usage are displayed in an easier-to-read manner.The-H-parameter above the-H root is also used to convert capacity by 1000 instead of 1024 when the radicals are initialized.-K Displays the usage of the disk in units.-L Displays the disk space utilization of the local partition, assuming that the disk of the remote server is SERVERNFS, then the system displays the result after the filter NSF
The DF command is a commonly used command for viewing hard disk information. The main parameters are as follows:
DF-A: displays the disk usage of all file systems, including 0 block file systems.DF-I: displays the I node information, not the disk block.DF-T: displays the disk space usage of each specified type of file system.DF-X: List disk space usage of a file system of a specified type.DF-T: displays
First, create a file larger than the limit and use the DD command.Dd If =/dev/Zero of =/home/Leon/tmpfile BS = 1024 COUNT = 1048576In this case, a 1 GB file is created.TheProgram:
# Include
During program sleep, run the DF command to check the hard drive space;At the end of the program, run the DF command again to check the hard drive space, and the system will find that the hard drive space resource is
DF Command verbose usage
A: Displays all file systems and disk usage scenarios for each partition
I: Show the usage of i-nodes
K: size is denoted by K (default value)
T: Displays all partition disk usage for one file system
X: Displays all partitions that are not part of a file system disk usage
T: Displays the name of the file system to which each partition belongs
Common commands: Df-hi
Detailed oper
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
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
, 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
than the results of the DU calculation.2, under abnormal circumstances, DF calculation used space will be much larger than duThis is also the problem encountered before, DF View results File system 100% used, and Du's result is also 6GB idle, so a problem hardware manufacturers a support incredibly do not know how to explain, this is also let me curious to check back at night to see the reason, the results
, and DF is used to compute the space using the disk block usage.
When an application is writing a large file, we RM or MV This file (Unix is allowed to do this, Windows is silly on this point), the application will occupy the handle and write the disk directly according to the disk location referred to by the handle, without checking that the file is deleted.
Therefore, the above problems will arise. At th
DF and Du commands in Linux Unix statistically inconsistent disk space values often use DF and Du to see the disk free space and space, and occasionally find that DF (free space) is less than the disk size minus du (footprint).Two commands are implemented in the same way, but the process of implementation is fundament
Experience of using DF, DU, fdisk:linux Disk Management kickDisk is a very important resource in Linux system, how to effectively manage it directly affects the performance of the whole system. In commonly used commands, DF is used to check file system disk occupancy, du checks disk space usage, and fdisk is used for disk partitioning, which is the author's more commonly used three commands, share some of t
The df command in Linux and other-general Linux technology-Linux technology and application information. The following is a detailed description. I have an AIX and Linux environment at hand. df is a frequently used system command. This small command is quite different in different environments. For example, the "-v" parameter can be used with-k-m-g and other parameters on AIX to display more readable inform
manufacturers a support incredibly do not know how to explain, this is also let me curious to check back at night to see the reason, the results of Google a bit.The reason for this is that Du is used for computing space based on the file name and directory name, and DF is used to calculate space using hard disk block usage.When an application is writing a large file, we RM or mv the file (Unix is allowed t
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
/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, 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
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.
The command DF can display the maximum available space and usage of all file systems. See the following example:
# DF-H
Filesystem size used avail use % moun
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.