Linux Command Learning record (v)

Source: Internet
Author: User
ln command: Create a link (shortcut)

Each file has an indicator number, which is the inode;

The hard link principle is that the linked two files share the same file content, that is, the same inode. BUG: You can only create hard links to files, and you cannot create hard links to directories .

Hard link schematic diagram: ln file1 file2

Soft Link Features: If the deletion of file2,file1 is not affected, but if the deletion of file1,file2 becomes a dead link, pointing to the file is missing;

Soft links can point to directories

Soft link schematic: ln-s file1 file2 creating file1 soft links file2


sudo command: Run command as root (substitute user do)

sudo su: always be the root user



Linux Command Learning record (v)

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.