Fedora25 Find File--linux Common Find File Method--find command skillfully used

Source: Internet
Author: User

Our commonly used file search feature on Windows looks simple, but often finds it troublesome to find a file on Linux!

According to the habits of personal use, I found: I would like to find a file in the general situation will know these parts, one is the file approximate scope, the second is the file name of a character or keyword, the third is the suffix. And, in the process of using Linux, we usually just place the files in our home directory.

According to these items, I specifically listed a common search file to find the format of the command, using the terminal Find command to find files:

Open terminal, find personal files without root permission, enter commands in the following format:

$ find/home/username-name *keyword*.pdf

Find, range,-first name, keyword

Explain:

Find is a common search command in a Linux system, and because of its very powerful features, it has many options, and as a non-administrator we only remember one-name.

/home/username since we will only place personal files in our own home directory, it is almost certain that the files must exist in their home directory. So you just have to remember your home directory.

-name Generally, we will remember a part of the name, so the most common is the-name parameter.

*keyword*.pdf Join us Remember that some characters in the file name keyword, use the * number to wrap it (* represents any arbitrary character, including 0 characters), if you remember the file suffix, add a suffix, such as in this case, the. pdf suffix.

This article is from the "Wzbao of Interest Research Fedora" blog, please be sure to keep this source http://wzbao.blog.51cto.com/11237209/1919774

Fedora25 Find File--linux Common Find File Method--find command skillfully used

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.