Soft connections and hard connections

Source: Internet
Author: User

Hard Connect:

1, can only create files, can not be applied to the directory;

2, can not cross the file system;

3, creating a hard connection will increase the number of times the file is connected;

Symbolic Connection:

1, can be applied to the directory;

2, can cross file system;

3, will not be increased the number of files are connected;

4, its size is the number of characters that the pointing path contains;

To create a connection command:

ln [-s-v] SRC DEST


Du shows a file system or each directory occupies the overall disk space size, the size of each directory

Du-s shows that sub-files in a directory occupy the size of disk space, the entire directory size


DF Report File system disk uses space size, default display file Block size

-I: Display inode number

-H: Displays the file system size

-P: Display content on the same line

Device files:

Block Device B: Devices that are randomly accessed by block, such as disks

Character Device C: Devices that are accessed by character, such as a keyboard

Device files are distinguished by the main device number and the secondary device number

Main device number (major numbers): Indicates the same type of device

Minor number: represents different devices in the same type of device

command to create a block device

Mknod: Creating a special file for a block or character device

Mknod [OPTION..] NAME TYPE [MAJOR | MINOR]

-M MODE: Device permissions granted when a block device is created

-P: Creating a piping device FIFO

#echo "Hello" >>/dev/pts/1

This article is from the "ignorance of knowledge" blog, please be sure to keep this source http://yujiqing.blog.51cto.com/1475974/1630773

Soft connections and hard connections

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.