1. IntroductionDu view the directory size, DF to view disk usage.2. DuDisk usage(1) Basic functions Recursively view the size of all files under a folder(2) Common parameters: -h,–human-readable display dimensions in a more readable manner (e.g. 1K 234M 2G) -s,–summarize only calculates the total amount of each parameter in the command column separately (3) Other parameter description: -a,–all the disk usage of all files, not just the directory–appar
Mbr:master Boot Record Master boot recording (512byte bytes)Bootloader:446byteMark Partition: 16byte mark a partition (total 64byte)Indicates if the MBR is valid: 2byte Magic number################################################lnln [options] ... Target (second format)-S,--symbolic create symbolic links instead of hard links-V,--verbose lists the names of each file before linkingHard Links1. Only files can be created2. Cannot cross file system3. Creating a hard connection increases the number o
1. Mounting storage media
The Linux file system incorporates all the disks into a single virtual directory, which needs to be placed in the virtual directory before the new storage media is used, which is called mount (mounting)
1.1 Mount Command
The command to mount the media on Linux is called Mount. By default, the Mount command outputs a list of mounted devices on the current system.
1.2 Umont
To remove a removable device, you cannot remove it directly from the
Command format:DF [Options] File
Command function:Displays the free space for the specified disk file, and if no file is specified, represents all disks
Common options: -A All file system list- H easy to read mode display- H is the same as-H, but this is calculated as 1k=1000b -I display inode information- l Show local file system only- t display file system type
Common examples:Example one: Show disk usageCommand: DFExample two: Displaying disks of the specified typeCommand:
1, the difference between the two
Du,disk usage, is to search the file to calculate the size of each file and then accumulate, du can see the files are only some of the existing, not deleted. The size of his calculations is the sum of all the file sizes currently he thinks exist. Df,disk free, through the file system to quickly get the size of information, when we delete a file, the file is not immediately in the file system disappeared, but tempo
Tags: how to notify method view share Picture List Linux disk HTTPS system partitionTransfer from https://www.cnblogs.com/xd502djj/p/6668632.htmlLinux disk space always alarm, found to large files, after deletion, DF saw disk space is not released.The following discovery system has been found to alias RM, because Linux does not have a recycle Bin mechanism for delete operations, the RM operation has been customized, the deletion of files moved to the/
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
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
commands:1, and user-related configuration file knowledge points:/etc/passwd account files and different column contents/etc/shadow account password file and different column contents/etc/group groups of files and different column contents/etc/gshadow group password file and different column contents2. User Management commandsUseradd-u-g-g-s-m-e-c-DCorrespondence/etc/skel,/etc/default/useradd,/etc/login.defsUserdel-rUsermod-u-g-g-s-m-e-c-d-l-u-lIdChage-l-e-m-w-m-I.passwd--stdin-n-i-w-X (suid-bi
Environment: Centos 6.5Today, there is a strange thing is that df-h when viewing disk space, the display uses a space of 100%, unable to write to the disk, but when viewed with du-sh/home/*, the sum of space used is about 20%.650) this.width=650; "style=" Float:none; "title=" 1.png "alt=" wkiol1b_8u_y4mmjaaiaejkdh90184.png "src="/HTTP/ S2.51cto.com/wyfs02/m02/7e/70/wkiol1b_8u_y4mmjaaiaejkdh90184.png "/>650) this.width=650; "style=" Float:none; "title=
Df:disk free, which counts the disks that are idle in the current systemDu:disk usage, which counts the idle disk being used.If a file is deleted and the process using the file is not restarted, then there is a case of DF and du inconsistencies.Workaround:1. Run Command lsof | grep deleted lists all files that have been deleted but are still occupied by the process2. Kill the process that occupies the deleted file.Reference1. http://www.cnblogs.com/he
Df Command help informationUsage: df [Option]... [file]...Displays information about each file system. By default, all file systems are displayed.Long Options are required when short options are used.Option-A, -- all includes a file system with a size of 0 blocks.-B, -- block-size = The size block is measured in specified bytes.-H, -- human-readable print the file system size in an easy-to-understand format
later, that is mp3 in this example)Landlord does not have mp3 placed in the Linux inside, so the output is deployed, the format of reference to the default du command
Next is the DF command, check the disk utilizationDfTyping the above, outputs a table consisting of 6 columns. All the columns is very easy to understand. Remember the ' Size ', ' used ' and ' Avail ' columns use kilobytes as the unit. The ' use% ' column shows the usage as a perc
(i) View file system space usage: DF
syntax Format
DF [-h] File/directory name/omit displays the file or directory where the file system disk space usage
parameter explanation:-
H Display with a more readable capacity format rendering (g/m/k), automatic selection of displayed unit size
(ii) View the capacity of the directory: Du
syntax format
du [-ahskm] file or directory name
parameter explana
In Windows, you can easily view disk space, but you may be confused about how to view disk space in Linux. Don't worry. in Linux, you can use the following command to query logs.
UseDFCommand to view the disk attributes, including the file system type, disk size, used size, remaining size, usage percentage, and so on.
UseDuCommand to view the folder and file size.
The Command Parameter-H is used to make it easy for you to understand the size of each file. Without this parameter, the size of
download rate to 300K download a fileWget-c URL: A breakpoint continues to upload a file to prevent network interruption when downloading large filesWget-b URL: Download a file in the background, tail-f wget-log View Download Progresswget--user-agent= "XXX" URL: Use pseudo proxy name to downloadwget--tries=40 URL: Download a file, failed to retry 40 timeswget--reject=gif URL: Download a file, but do not download GIF files for filtering the specified formatWget-o Download.log URL: Writes the dow
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.