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

How to use the find command in Linux

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

Share

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

In this issue, the editor will bring you about how to use the find command in Linux. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

/ / find [search scope] [search criteria] / / case touch Dfind. -name d # Indicates that no find is returned for the current directory #. -iname d#./D//-I parameter: case-insensitive / /-user parameter: find the owner No more examples / /-nouser parameter: find files without owners / / find files modified 10 days ago find / etc/log/-mtime + 10 mitime: file last modified time / / atime: file last access time / / ctime: file last attribute change time / / + 10 days ago / /-10 days / 10 days / 10 days /-size size / / k lowercase / M Uppercase / / find 25k files under / etc directory find / etc-size 25k// search / etc directory files greater than 25k find / etc-size + 25k// search / etc directory files less than 25k find / etc-size-25k//-an and logic and -o or logic or / / find files greater than 25k and less than 50k under / etc directory find / etc-size + 25k-a-size-50k//-exec |-ok {}\; / find / etc directory files greater than 25k and less than 50k and list their details find / etc-size + 25k-a-size-50k-ok ls-lh {}\ # Security mode, the result of-ok will be asked one by one, which also means that when this command accepts the result of the previous command, it is find / etc-size + 25k-a-size-50k-exec ls-lh {}\. This is how the find command in Linux shared by the editor is used. If you have similar doubts, you can understand it by referring to the above analysis. If you want to know more about it, you are welcome to follow the industry information channel.

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

  • The implementation method of modifying tomcat running version and Port by Maven

    Maven uses tomcat6 to run projects by default. In this section, maven is asked to use tomcat7 to add

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

    12
    Report