当前位置:网站首页>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"
边栏推荐
- Classic usage of the sumproduct function
- The simplest way to tell you is to hash and not hash
- Excel splits a worksheet into multiple worksheets according to conditions, and how to split multiple worksheets into independent tables
- Common cluster deployment schemes in redis
- Use of MySQL variables
- Day22 send request and parameterization using JMeter
- What is hybrid web containers for SAP ui5
- SQL get current time
- Word quickly makes multiple single-sided table labels, number plates, etc
- Semantic segmentation cvpr2019-advance: advantageous enterprise minimization for domain adaptation in semantic segmentation
猜你喜欢

Folding mobile phones are expected to explode, or help Samsung compete with apple and Chinese mobile phones

What happens when redis runs out of memory

JMeter stress testing and agent recording
MySQL transaction learning notes (I) first encounter

Analysis of IM project framework

By inserting a section break, the word header, footer, and page number can start from any page
SAP ui5 date type sap ui. model. type. Analysis of date parsing format

MySQL tuning -- 02 -- slow query log
The locally developed SAP ui5 application is deployed to the ABAP server to perform error analysis

Classic usage of the sumproduct function
随机推荐
Click to send text messages without response is a common problem for many users in building the elegant grass Dragonfly Q system - solve the problem of clicking to send text messages without response
Vscode voice notes to enrich information (medium)
Interview experience - list of questions
SAP ui5 application development tutorial 32 - how to create a custom SAP ui5 control
Volatile and JMM memory models
SQL get current time
Guava common collection tool classes
Array introduction plus example 01
DOM proficient? What is the difference between node and elment?
Transformations of pytorch torch torch vision
How SAP ui5 device type detection device API works
SAP ui5 Application Development Tutorial Part 30 - parameter transfer in the routing process of SAP ui5
The locally developed SAP ui5 application is deployed to the ABAP server to perform error analysis
Yunda's cloud based business in Taiwan construction 𞓜 practical school
SAP Fiori tools and corresponding cli (command line interface)
Guava-IO
Multithreading and thread pool
C simple operation mongodb
JS to realize the encapsulation of the function of obtaining the mouse click position
[JS basic review] scope, this, closure