当前位置:网站首页>Detailed explanation of the find command (the most common operation of operation and maintenance at the end of the article)
Detailed explanation of the find command (the most common operation of operation and maintenance at the end of the article)
2022-07-29 07:53:00 【Lying cat】
find The command is based on the date and time , jurisdiction , Name, etc. find files and directories
find Catalog Parameters
Common parameters :
-name aa # lookup aa The file of
-iname aa # lookup aa Contains upper and lower case letters
-type # The search file type is : f Ordinary documents 、 l A symbolic link 、d Catalog 、b Block device .
-size # Check files according to size
-amin # Find last in system N Files accessed in minutes
-mmin # Find last in system N Files modified in minutes
-mtime -n +n # Find files by file change time ,-n finger n Within days ,+n finger n Before the day
-ctime -n +n # Find files by file creation time ,-n finger n Within days ,+n finger n Before the day
-user # Find files belonging to a user
-group # Find files that belong to a group
-exec: find Command to execute the shell command .
find /home -name nginx # lookup /home The directory is called nginx file
find /var/log/ -name cron* # lookup /var/log Name under the directory cron Opening file
find /var/log/ -size 500M # lookup /var/log The directory size is 500M The file of
find /var/log/ -size +100M -size -500M # lookup /var/log Directory greater than 500M Less than 100M The file of
find /var/log -size +1G -exec rm -rf {} \; # lookup /var/log Under the table of contents 1G And use the command to delete Commonly used ( combination crontab Timing task ): /usr/bin/find /data/ -type f -mtime +30 -exec rm {} \;
Delete data Under the table of contents 30 Days ago
边栏推荐
- Excellent urban design ~ good! Design # visualization radio station will be broadcast soon
- Phased learning about the entry-level application of SQL Server statements - necessary for job hunting (I)
- Keyboard processing in jetpack compose
- Halcon installation and testing in vs2017, DLL configuration in vs2017
- MapReduce steps of each stage
- Zero technology is deeply involved in the development of privacy computing financial scenario standards of the ICT Institute
- Up sampling deconvolution operation
- Getting started with JDBC
- LANDSCAPE
- String class
猜你喜欢

cs61abc分享会(六)程序的输入输出详解 - 标准输入输出,文件,设备,EOF,命令行参数

Useful websites
![[deep learning] data preparation -pytorch custom image segmentation data set loading](/img/7d/61be445febc140027b5d9d16db8d2e.png)
[deep learning] data preparation -pytorch custom image segmentation data set loading

Android interview question | how to write a good and fast log library?

Solving linear programming problems based on MATLAB

Why don't you like it? It's easy to send email in cicd

C language data type

Amaze UI icon query

Some thoughts on growing into an architect

MySQL 45 | 08 is the transaction isolated or not?
随机推荐
Go 事,如何成为一个Gopher ,并在7天找到 Go 语言相关工作,第1篇
Compare three clock circuit schemes of single chip microcomputer
Space shooting Lesson 17: game over (end)
Sqlmap (SQL injection automation tool)
207.课程表
Halcon installation and testing in vs2017, DLL configuration in vs2017
EF core reading text type is slow_ EF core is slow to read large string fields
技术分享| 快对讲综合调度系统
工业互联网行至深水区,落地的路要怎么走?
Jianmu continuous integration platform v2.5.2 release
Matrix decomposition and gradient descent
Pat class a 1146 topology sequence
Do you want to meet all the needs of customers
[memo] summary of the reasons why SSH failed? Remember to come next time.
The difference between static library and dynamic library of program
Blue Bridge Cup group a selection XOR
Sqlmap(SQL注入自动化工具)
Amaze UI icon query
Useful websites
In the MySQL connector of flynk CDC, the MySQL field is varbinary, which is officially