当前位置:网站首页>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
边栏推荐
- Starting process of raspberry pie
- Space shooting Lesson 17: game over (end)
- Access数据库引入datagridview数据后,显示错误
- [note] the art of research (understand the importance of the problem)
- MapReduce各阶段步骤
- [cryoelectron microscope | paper reading] emclarity: software for high-resolution cryoelectron tomography and sub fault averaging
- cs61abc分享会(六)程序的输入输出详解 - 标准输入输出,文件,设备,EOF,命令行参数
- The database uses PSQL and JDBC to connect remotely and disconnect automatically from time to time
- Halcon installation and testing in vs2017, DLL configuration in vs2017
- Amaze UI 图标查询
猜你喜欢

Monitor the bottom button of page scrolling position positioning (including the solution that page initialization positioning does not take effect on mouse sliding)
![[experience] relevant configuration of remote connection to intranet server through springboard machine](/img/27/25301cce8a4e5fa0c91902c7b734fb.png)
[experience] relevant configuration of remote connection to intranet server through springboard machine

Pat class a 1146 topology sequence

mysql 使用 DATE_FORMAT(date,'%Y-%m')

@Use of jsonserialize annotation
![[paper reading | cryoet] gum net: fast and accurate 3D subtomo image alignment and average unsupervised geometric matching](/img/dc/255bf122d5243f2a08ca0e03b53137.png)
[paper reading | cryoet] gum net: fast and accurate 3D subtomo image alignment and average unsupervised geometric matching

Mutationobserver document learning

Multi thread shopping
黑盒测试常见错误类型说明及解决方法有哪些?
![[paper reading] tomoalign: a novel approach to correcting sample motion and 3D CTF in cryoet](/img/3a/75c211f21758ca2d9bb1a40d739d80.png)
[paper reading] tomoalign: a novel approach to correcting sample motion and 3D CTF in cryoet
随机推荐
Keyboard processing in jetpack compose
For the application challenge of smart city, shengteng AI gives a new solution
Jump from mapper interface to mapping file XML in idea
[skill accumulation] presentation practical skill accumulation, common sentence patterns
[cryoelectron microscope | paper reading] emclarity: software for high-resolution cryoelectron tomography and sub fault averaging
Measured waveform of boot capacitor short circuit and open circuit of buck circuit
Database persistence +jdbc database connection
[skill accumulation] common expressions when writing emails
Analyze the roadmap of 25 major DFI protocols and predict the seven major trends in the future of DFI
Compare three clock circuit schemes of single chip microcomputer
cs61abc分享会(六)程序的输入输出详解 - 标准输入输出,文件,设备,EOF,命令行参数
Solve the problem that CSDN cannot publish blog due to unknown copyright
Halcon installation and testing in vs2017, DLL configuration in vs2017
Realize the effect of changing some colors of a paragraph of text
Log4qt memory leak, use of heob memory detection tool
330. Complete the array as required
Pat class a 1150 traveling salesman problem
Jianmu continuous integration platform v2.5.2 release
Day 014 二维数组练习
Basic introduction to pod