EXT2 File System
Linux's regular filesystem is Ext2 (Linux second Extended file system), which consists mainly of the following three parts:
1 Super BLOCK: Records the overall information of this file system, including the total amount of inode/block, usage, surplus, and file system format and related information.
2 inode: Log file properties and permissions (metadata metadata), a file occupies an inode, while recording file data in the block number
3 Block: Where the actual data is stored
Tags: disk space shadow hints between the FFFFFF data body-odf 报告文件系统磁盘空间的使用情况Syntax format: DF "option" "File" df [option] [file or directory]Attention:
There must be at least one space between each element in the DF command and subsequent options and files or directories.
If you do not specify a file parameter after the command, the usage of all disk p
Identifier,app ID for the iOS app is divided into a wildcard app ID and a clear app ID in the Apple Developer Center, which is typically used for general application development, and an ID can be applied to multiple different identity applications But for apps that use services such as message push, Passbook, site Publishing, icloud, you must configure an explicit app ID.Device identificationUDID, an identifier used to identify each hardware device. Note that it is not a device Token,device tok
Appears df:cannot read table of mounted file systems, using Grep-v rootfs/proc/mounts >/etc/mtab After resolution, this way to do the next record.Here's a look at the differences and connections between/etc/fstab and/etc/mtab.The role of the/etc/fstab file records information about the hard disk partition on the computer, and when Linux is started, the fsck command to check the partition and Mount command to mount the partition require the information in the fstab to properly check and mount the
With lsof/| Grep-i Delete deleted files that are located from the root directory that are openedIf locating a file takes up a lot of spaceMainly because we delete this log file by the RM-RF *.log such a command to delete, delete the log and not restart the corresponding process, resulting in the Inode node is not released, space has been occupied.If we use the echo "" >/logpath/201109.log command to empty the logRelated tools:Df-hDu-hDu-shDu-h--max-depth=1Lsof/| Grep-i DeleteLsof Abc.txt shows t
1, Command introduction:DF is used to detect disk space usage.2. Command format:DF [Options] File3. Command parameters:Necessary parameters:-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 information-K block is 1024 bytes-L show local file system only-M block is 1048576 bytes--no-sync Ignore sync command-P output format POSIX--sync perform the sync command before obtaining the disk information-T File system typeSele
LinuxDFCommand DF(disk free)Feature Description: Displays information about the disk. Syntax:DF[-ahhiklmpt][--block-size=Additional notes:DFthe file system and usage scenarios for the disk can be displayed. Parameters:-A or--all contains all file systems. --block-size=-H or--human-readable displays information in a more readable way. -H or--si is the same as the-h parameter, but is calculated as Bytes instead of the Bytes. -I or--inodes displays
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
Today in a Linux system, using the DF command to view disk usage, the discovery/root partition uses 100%Then delete a large file/var/lib/pgsql/9.1/pgstartup.log, and then use DF to view the usage, showing the content unchanged. As shown in the following:In the online search, it seems that the reason for the inode, has not really deleted, nor how to say clearly, so I use the following command to view:[Email
One, DF (File System view command) [[email protected] ~]# DF [option] [Mount point] option:- A displays all file system information, including special file systems such as/proc,/sysfs-H , using the customary unit display capacity, such as KB, MB or GB etc-T Displays the file system type-m display capacity in megabytes-K displays the capacity in kilobytes. The default is in kilobytesTwo, Du (statistics direc
Background
Recently deployed a set of services on the server, the service is not careful to run the log file to delete, testing the service does not affect the normal operation, and no log processing operations will not be complacent throw that, but inadvertently also buried a huge pit. Received the server disk when the alarm on DF looked full, but du-h look at the time found only a total of 130G of the disk used 20G less than. problem
1. Review: An online host late-night continuously received alarm system disk used overrun alarm. Login host View But encountered confusion: in check disk usage df–h out of the disk usage is exactly the same as the alarm information, has been occupied by 100%, but to view the directory Size Du, but show the actual directory size is not the case, but there is a lot of free space. Disk usage df–h result is 10
Df-h user-friendly display file system partition informationNote: The directory in Linux is also a file, do not confuse the following directory file to say.The traditional way to view the file size can be used: ll-h/directory/file name, you can see the size of the file, but if you want to see the size of a directory, using the command: ll-h/directory, can only view the current directory information size, rather than the current directory of all the co
Tags: Log df command sys system proc IMA FFFFFF Learning Note containsFirst, DF#查看文件系统的使用情况The Tmpfs end of the first column of the file system is a temporary file system, with the default file units being kbdf -hAutomatically adapts to file size unitsFreeYou can see how swap is useddf -iView the usage of each partition inodeSometimes the memory of the disk is still remaining, but can not write new files, t
DfUsage: DF [options] ... [File] ...Displays information about the file system where each file resides, showing all file systems by defaultCommon options-h,–human-readable size display for human readable form (e.g., 1K 234M 2G)Example[root@www ~]# df -h文件系统 容量 已用 可用 已用% 挂载点/dev/sda1 94G 21G 68G 24% /tmpfs 1014M 01014M 0% /dev/shmDuUsage: du [options] ...
DF (disk free)function Description:displays information about the disk. Syntax:DF [-ahhiklmpt][--block-size=Additional notes:DF Displays the disk's file system and usage scenarios. Parameters:-A or--all contains all file systems. --block-size=-H or--human-readable displays information in a more readable way. -H or--si is the same as the-h parameter, but is calculated as Bytes instead of the Bytes. -I or--inodes displays the inode information. -K or--k
used (such as the use of disk space is 100% of the case of processing), which is why some disk space is not available to ordinary users.Such as:$ df-hl/dev/sda6Filesystem Size used Avail use% mounted on/dev/sda6 42G 34G 5.8G 86%/linux/sda6$tune2fs-m 0/dev/sda6TUNE2FS 1.41.3 (12-oct-2008)Setting reserved blocks percentage to 0% (0 blocks)$ df-hl/dev/sda6Filesystem Size used Avail use% mounted on/dev/sda6 42
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.