Small trap of find

Source: Internet
Author: User
The small trap of find-general Linux technology-Linux programming and kernel information. The following is a detailed description. Key words: find soft link symbol link

Let's take a look at the two commands.
Find/etc/-name "conf"
Find/etc-name "conf"

Is it the same? The results are the same.

OK, let's take a look at the two below
Find/usr/src/linux/-name "*. c"
Find/usr/src/linux-name "*. c"

Is it the same? Try it!

OK! You found out! Why is no file found in the second command? People who are familiar with it may soon discover the mysteries:/usr/src/linux is a soft link.

Why can't I use soft links? Because find first regards it as a file and wants to know more details? Find your own code.

PS. If it is a soft link in another path When you press the key, you will find that the soft link appears "/" only twice "/".

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.