Linux Basic command Format (3)

Source: Internet
Author: User

1. Soft Connect command: The abbreviation for ln <link >

ln-s [Original file] [target file] (renamed)

Function Description: Generate link file

-S: Create a soft connection (generate a link file from the original file)

Hard-Link Features:

1. Having the same I node and storing block blocks can be seen as a file

2. Can be identified by the I node

3. Cannot span partitions

4. Cannot be used for directories (only files can generate hard links)

Soft Connection Features:

1. Windows-like shortcuts

2. The soft connection has its own I node and block blocks, but the data block only saves the original file name and I node name, and there is no actual file data

3.LRWXRWXRWX (l soft Connect) permissions are: rwxrwxrwx

4. Modify any file and the other changes

5. Delete the original file, soft connection cannot be used (create soft connection file path to write absolute path)

Third, File Search command

1. File Search Command 1:locate

Locate file name (search by file name in background database, search several faster)

Background database searched by the Locate command (new folder or file not found)

Use the UpdateDB command to update the database to find the new file or directory

Note: tmp/directory locate does not search

Locate can only search by file name

2, File Search command 2:whereis and which

I:whereis file name (the path where the search command is located and the location of the help document)

Option:-B: Find the executable file only

-M: Find only help documents

Ii:which File name (Search command path and alias)

Linux Basic command Format (3)

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.