当前位置:网站首页>Find command – find and search for files
Find command – find and search for files
2022-06-25 05:59:00 【ProYuan28】
find The command can find a file or directory based on a given path and expression .find There are many parameter options , And support regular , Powerful . In combination with pipes, complex functions can be realized , It is a command that system managers and ordinary users must master .
find Without any parameters , Means to find all files and directories in the current path , If the server load is high, try not to use it during peak hours find command ,find Command fuzzy search still consumes system resources .
Grammar format :find [ Parameters ] [ route ] [ Search and search scope ]
Common parameters :
| -name | Search by name |
| -size | Search by size |
| -user | Search by attributes |
| -type | Search by type |
| -iname | Ignore case |
Reference examples
Use -name Parameter view /etc All the .conf Profile at the end :
[[email protected] ~]# find /etc -name "*.conf
Use -size Parameter view /etc Under the directory is greater than 1M The file of :
[[email protected] ~]# find /etc -size +1M
Find all the files in the current user's home directory :
[[email protected] ~]# find $HOME -print
List all files and folders in the current directory and subdirectories :
[[email protected] ~]# find .
stay /home Look in the directory to .txt The ending filename :
[[email protected] ~]# find /home -name "*.txt"
stay /var/log Ignore case in the directory to find .log The ending filename :
[[email protected]xcool ~]# find /var/log -iname "*.log"
Search all files accessed in more than seven days :
[[email protected] ~]# find . -type f -atime +7
Search access time exceeds 10 Minutes of all documents :
[[email protected] ~]# find . -type f -amin +10
find /home Next is not to .txt Final document :
[[email protected] ~]# find /home ! -name "*.txt"
边栏推荐
- [QT] for multithreaded programs, do not use the printf() function to print out
- Day16 (regular expression, enumeration)
- What is SAP sup - Sybase unwired platform
- JS implementation mouse can achieve the effect of left and right scrolling
- Mongodb delete data
- Go microservice development toolkit
- 16 application problem solving
- Guava immutable set
- Cnpm installation
- Soft exam information system project manager_ Management Science (Operations Research) 2--- senior information system project manager of soft test 034
猜你喜欢
SAP ui5 date type sap ui. model. type. Analysis of date parsing format

Soft exam information system project manager_ Information system security management - Senior Information System Project Manager of soft test 026

"APEC industry +" biov Tech talks about the cross-border of Chinese biotechnology enterprises and "Pratt & Whitney Kangyu" | apec-hub public welfare
Websocket in the promotion of vegetable farmers

Solve some prompt codes that pychar cannot recognize selenium

Add the author watermark plugin v1.4 update to the posts of elegant grass discuz plugin - some forums post errors and bugs have been fixed

Code learning-cvpr2020 unsupervised domain adaptive semantic segmentation: intra advance

ERDAS 9.2 installation tutorial

C switch nested syntax

Common cluster deployment schemes in redis
随机推荐
Technology inventory: Technology Evolution and Future Trend Outlook of cloud native Middleware
What is hybrid web containers for SAP ui5
Wireless industrial Internet of things data monitoring terminal
The simplest way to tell you is to hash and not hash
CVPR2021-Semi-supervised Domain Adaptation based on Dual-level Domain Mixing for Semantic Segmentati
Wind farm visualization: wind farm data
A method of automatic continuation of previous tables in word table
ThreadLocal
Leetcode sword finger offer question brushing - day 27
Interface learning
What changes have taken place in the project file after SAP ui5 tools ran the Fiori add deploy config command
What happens when redis runs out of memory
Guava common collection tool classes
Depth of binary tree
Deep learning non local neural networks
Guava immutable set
Multithreading and thread pool
By inserting a section break, the word header, footer, and page number can start from any page
How the sap ui5 framework performs single step debugging of batch requests
Common cluster deployment schemes in redis