当前位置:网站首页>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
边栏推荐
- 智慧城市的应用挑战,昇腾AI给出了新解法
- Ionicons icon Encyclopedia
- In JS, 0 means false, and non-0 means true
- 你学习·我奖励,21天学习挑战赛 | 等你来战
- 在一个sql文件中,上面定义一个测试表及数据,下面可以select* from 测试表
- After the access database introduces DataGridView data, an error is displayed
- [note] the art of research (understand the importance of the problem)
- Pat class a 1154 vertex shading
- Embroidery of little D
- 多线程购物
猜你喜欢

@Use of jsonserialize annotation
![[flask introduction series] installation and configuration of flask Sqlalchemy](/img/62/3d108561f2cfeb182f8241192a79ba.png)
[flask introduction series] installation and configuration of flask Sqlalchemy
![[WPF] realize language switching through dynamic / static resources](/img/23/1e089ce4a07128323824b25897a8c4.png)
[WPF] realize language switching through dynamic / static resources

Cs61abc sharing session (VI) detailed explanation of program input and output - standard input and output, file, device, EOF, command line parameters

Autojs微信研究:微信自动发送信息机器人最终成品(有效果演示)
![[cryoelectron microscope | paper reading] emclarity: software for high-resolution cryoelectron tomography and sub fault averaging](/img/1e/9f05862288261e16a6b04508b9b292.png)
[cryoelectron microscope | paper reading] emclarity: software for high-resolution cryoelectron tomography and sub fault averaging

C language data type

Sqlmap(SQL注入自动化工具)

MySQL uses date_ FORMAT(date,'%Y-%m')

MySQL 45讲 | 08 事务到底是隔离的还是不隔离的?
随机推荐
C language data type
[FPGA tutorial case 42] image case 2 - realize image binarization processing through Verilog, and conduct auxiliary verification through MATLAB
Meizhi optoelectronics' IPO was terminated: annual revenue of 926million he Xiangjian was the actual controller
MySQL 45 talk | 07 line lock merits and demerits: how to reduce the impact of line lock on performance?
LANDSCAPE
The difference between static library and dynamic library of program
Cs61abc sharing session (VI) detailed explanation of program input and output - standard input and output, file, device, EOF, command line parameters
Matrix decomposition and gradient descent
C# 之 volatile关键字解析
MapReduce各阶段步骤
Go, how to become a gopher, and find work related to go language in 7 days, Part 1
MySQL 45 | 08 is the transaction isolated or not?
The database uses PSQL and JDBC to connect remotely and disconnect automatically from time to time
准备esp32环境
The new generation of public chain attacks the "Impossible Triangle"
MySQL uses date_ FORMAT(date,'%Y-%m')
[dry goods memo] 50 kinds of Matplotlib scientific research paper drawing collection, including code implementation
My entrepreneurial neighbors
[experience] relevant configuration of remote connection to intranet server through springboard machine
[cryoelectron microscope | paper reading] emclarity: software for high-resolution cryoelectron tomography and sub fault averaging