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
First, DF
function:
Displays the available disk space on the disk partition, with the default display in kilobytes. You can use this command to get information about how much space the hard disk is taking up and how much space is left.
Options:
-A: Includes all file systems
-H: Displays the information unit display in a more readable manner g,m,kb
-
The file has been deleted, but the space is not releasedIt may be because the file is locked by the process, or a process has been writing data to this fileView the process of locking files directly with lsofIf there is a process that opens a large file, the large file is RM/MV,Du will update the statisticsDF is not updated , or the space is not released until the process is killedDu can view file and folder sizesDF can view the first-level folder size, usage ratio, hanging point, file system, e
DF/DU is the command used to view disk space usage. Typically used to locate an issue with insufficient disk space.Du view of the space used by file and directory disksCommon operations: du-h PathIf no path is taken, the default path is found.[email protected] soft]# du-h Test 608K test/Test6308K Test/test4 4.0K test/scf/Lib4.0K test/scf/service/deploy/Product4.0K test/scf/service/deploy/Info1. command format:du [Options] [file]2. Command function:Dis
Du can see the size of files and folders, DF mainly look at the size of the database, see the partition of disk usage, LS can add-h parameter, so we see the file sizeDF 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.It works well with both. For example, use DF to see which level of directory is too
du command : Displays disk usage space for each file and directory command format:du [options] [file]-K or--kilobytes output in kilobytes (1024bytes).-M or--megabytes is output in megabytes.-S or--summarize displays only the totals, listing only the last added total value.-H or--human-readable to improve readability of the information in K,M,G units[[email protected] test]# du608./test6308./test44./scf/lib4./scf/service/deploy/product4./scf/service/deploy/info12./scf/service/deploy16./scf/servic
What is the difference between DF and du two commands under Linux?First, the DF display file system usage, and du comparison, is more comprehensive.The most frequently used is df-t, which shows the usage of the file system and shows the type of file system .The proportions are as follows:[Email protected] ~]# df-tfiles
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
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 increasesDf=1, after each operation, Si, di decreasesWe can use the assembly syntax to describe the functions of MOVSB as follows:mov es:[di],byte ptr ds:[si]; 8086 does not support such instructions, only for the purposes of descriptionIf
The Mount command gives an overview of all mounted devices. To get this information, the/proc/mounts file was read, where the kernel keeps information about all current mounts. It shows kernel interfaces also, which may leads to a long list of mounted devices being displayed.The df-th command is designed to show available disk space on mounted devices; It includes most of the system mounts. Because it would look at all mounted file systems, it was a c
Command:
DF-H
Output instance:
File System capacity used available % mount point
/Dev/md0 9.7g 4.7G 4.6g 51%//Dev/sda5 9.7G 45 m 9.1g 1%/boot/Dev/sda8 9.9g 43 m 9.3g 1%/homeNone 1.8g 0 1.8g 0%/dev/SHM/Dev/sda9 23g 3.8g 18g 18%/usr/Dev/sda7 4.9g 2.6G 2.1g 57%/var/Dev/sdb1 267g 131G 123g 52%/oradata
Explanation:
DF outputs the capacity of each partition of the hard disk. The-h Parameter indicates that the dis
Ext2 file system the regular file system in Linux is Ext2 (Linux second extended file system), which consists of the following three parts: 1) super block: records the overall information of this file system, includes the total inode/block quantity, usage, remaining amount, and file system format and related information. 2) inode: records the attributes and permissions of a file (metadata). A file occupies one inode and records the block number of the file data. 3) block: because Ext2 is an inde
When an alert is reported, the Linux space usage is greater than 95%.
[Root@www.bkjia.com] # df-k
Filesystem 1K-blocks Used Available Use % Mounted on
/Dev/cciss/c0d0p2 10080520 9112968 455484 96%/
None 1977584 0 1977584 0%/dev/shm
/Dev/cciss/c0d0p5 28842748 6706924 20670700 25%/u01
/Dev/cciss/c0d0p6 26850172 683148 24803108 3%/u02
However, when du-kxs is used, the root directory usage is 80%
Du statistics file size Addition
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
top-c #任务管理器free-m #查看内存使用情况kill-9 2312 (description: Forced kill process kill-9 PID)df-h #查看磁盘使用情况
First, top1. RoleThe top command is used to display the program process in progress, and the permissions are all users.2. Format
top [-] [D delay] [Q] [C] [s] [s] [i] [n]
3. Main parameters
D: Specifies the interval of the update, in seconds.
Q: There are no delayed updates. If the user has a superuser, the top comma
1. Command: DF2. Command function: Displays the available space for the specified disk file.3. Command parameters:-A#List of all file systems-H#easy to read mode display-H#equals "-h", but calculated, 1k=1000, not 1k=1024-I.#Display inode Information-K#Chunk is 1024 bytes-L#Show local file system only-M#Chunk is 1048576 bytes--no-sync#Ignore sync command-P#the output format is POSIX--sync#perform the sync command before obtaining the disk information-T#File System Type--block-size=#Specify chunk
The Fdisk tool is a partitioning tool; DF is used to view the usage of the file system (partition)! Fdisk focuses on displaying information about partitioned tables; DF focuses on displaying information about all file systems in the current system; Fdisk-l View current partition information ( Mainly partition table information) fdisk/dev/sda partition the disk/DEV/SDA
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.