当前位置:网站首页>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
边栏推荐
- 输出1234无重复的三位数
- IonIcons图标大全
- Matlab simulation of LDPC minimum sum decoding based on high-order six ring free
- Sqlmap(SQL注入自动化工具)
- [memo] summary of the reasons why SSH failed? Remember to come next time.
- Mutationobserver document learning
- [cryoelectron microscope] relation4.0 - subtomogram tutorial
- MySQL 45 talk | 07 line lock merits and demerits: how to reduce the impact of line lock on performance?
- String class
- JVM garbage collection mechanism (GC)
猜你喜欢

Do you want to meet all the needs of customers

《nlp入门+实战:第五章:使用pytorch中的API实现线性回归》

Realize the effect of changing some colors of a paragraph of text

Sqlmap (SQL injection automation tool)

Matrix decomposition and gradient descent
功能自动化测试实施的原则以及方法有哪些?

Day 014 二维数组练习

The new colleague wrote a few pieces of code, broke the system, and was blasted by the boss!
![[cryoEM] Introduction to FSC, Fourier shell correlation](/img/01/6a4f6041444abfd1d3ca7e0c14b524.png)
[cryoEM] Introduction to FSC, Fourier shell correlation

How to draw an excellent architecture diagram
随机推荐
Excellent urban design ~ good! Design # visualization radio station will be broadcast soon
[cryoelectron microscope] relation4.0 - subtomogram tutorial
[flask introduction series] installation and configuration of flask Sqlalchemy
性能更佳、使用更简单的懒加载IntersectionObserverEntry(观察者)
In JS, 0 means false, and non-0 means true
@JsonSerialize注解的使用
RoBERTa:A Robustly Optimized BERT Pretraining Approach
Starting process of raspberry pie
[note] the art of research (understand the importance of the problem)
智慧城市的应用挑战,昇腾AI给出了新解法
[cryoelectron microscope | paper reading] interpretation of sub fault average m software: multi particle cryo EM refining with M
Do you want to meet all the needs of customers
Up sampling deconvolution operation
Sqlmap (SQL injection automation tool)
技术分享| 快对讲综合调度系统
Basic introduction to pod
准备esp32环境
写点dp
Strongly connected component
关于pip升级损坏导致的问题记录