Analysis of related command for DF du Fdisk mount

Source: Internet
Author: User

1 DF Command

Used to view the size of each partition of the disk, used, available, mount point, and so on, remember oh is to view the partitions OH

2 du command

Lists the total size of a directory, which includes the size of the directory itself, as well as all of the files in the directory, as shown in the following list

3 ln to establish soft links with hard links

When you establish a hard link, you do this by adding an Inode: Document name to the block of another directory, which points to the inode of that file. At this point, the inode for this file has two file names pointing to it.

Of course, we can also modify the hard link "filename" in another directory, because anyway, this "filename" is to point to the hard linked file inode.

When a soft link is made, it is not the same, whether it is to create a soft link or directory of the document, the internal actions are:

Create a new document in another directory that points to the linked document or directory. In other words, whether you're linking to a document or a directory, the new document is pointing at you anyway.

4 Mount Command

For an example of a specific mount, please see the example of mount in the bird's Linux private kitchen.

In short, remember to live two points, T followed by the file type (generally do not write, Linux will test itself),-o followed by the option, the most commonly used option is iocharset=cp950, the following is a flash drive when the example

Mount-t Vfat-o Iocharset=cp950/dev/sda1/mnt/flash

Another installation of dual systems, a very important file, that is, the boot from the Mount file/etc/fstab, this file is large to the following:

This file's 6 columns represent what is important oh, but the specific information is to refer to Brother Bird, here roughly said:

The first column is the device name, the second is the mount point, the third column is the file system type, the fourth column is a number of parameters, generally written defaults, the fifth column is to perform a backup? 0 is not, 1 is to be, 2 is to be regularly

The sixth column is to be checked on the boot, 0 is not, 1 is to, 2 is to, specifically see "Brother Bird"

Linux does not use what virtual CD-ROM software, you can directly mount the ISO file, commands as follows

Mount-o Loop *.iso Mycdrom Important is the-O loop parameter.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.