Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the use of the linux find file command find

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Today, what the editor shares with you is the usage of the linux search file command find, which I believe many people do not know very well. in order to let you know more about the usage of the linux search file command find, I summarize the following contents for you, let's look down together. I'm sure you'll get something.

How to use the linux find file command find

The operation of the Linux- file search command find is as follows:

1. Search across the board, or specify a directory to search. Find search directory-name target name, find /-name file

2. What you see in this search is an exact match of file, case-sensitive, you can use-iname case-insensitive, find /-iname file. In this way, we can find more relevant documents in uppercase.

3. We first use the * wildcard to match the case-sensitive files containing file: find /-name * file*. Case insensitive: find /-iname * file*. If you match in this way, there will be more files, and the more accurate the matching is, the more convenient it is to find.

4. Find search directory-size file size. Let's look for files larger than 100MB, which should actually be 102400KB*2. All search commands are: find /-size + 204800. The-sign is less than, and writing the number directly is equal to zero.

5. Find search directory-user user name. Here is to find the file whose user name is user1. For how to add and delete a user name for linux, please refer to the Linux user management command: find /-user user1.

6. Find search directory-type d. Find all directories under a directory: find / tmp-type d.

7. Find search directory-cmin-time (in minutes). Look for files that have been modified within the next hour of etc. There are too many files under the root directory. Specify a directory: find / etc-cmin-60.

8. Of course, the find command can add a query with multiple options:-an is to meet the pre-and post-conditions, and-o is to meet a condition, so that we can clear and see the filtered files.

On the linux search file command find usage is shared here, I hope that the above content can have a certain reference value, you can learn to apply. If you like this article, you might as well share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

  • How RK3288 modifies the browser's default home page and bookmarks

    This article mainly introduces RK3288 how to modify the browser default home page and bookmarks, the article is very detailed, has a certain reference value, interested friends must read it! Modify the browser default home page:

    © 2024 shulou.com SLNews company. All rights reserved.

    12
    Report