7

Linux Command Tip MySelf

 3 years ago
source link: https://www.ishells.cn/archives/linux-commands-tips
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Linux Command Tip MySelf

Linux Command Tip MySelf

%E5%A4%B4%E5%83%8F%E4%B8%93%E7%94%A8-410bbf6dd23c4ecfa72a37ab5e293ef6.jpg 18 次访问 2021-05-27
Scroll Down

1、find命令

# find -exec command {} \;固定用法,其中{}代表 find 的结果,相当于find ……|xargs
# find -mtime n# find -mmin n……类似-mtime、-ctime、-atime 等等根据时间搜索,其中n代表时间。 +n代表早于给定数值的时间之前,-n代表在给定数值的时间之内 例如:# 在当前目录下搜索 10小时之前被修改过内容的数据# find . -mtime +10## 在当前目录搜索 10小时之内被修改过内容的数据# find . -mtime -10
+ - 符号在 find 命令的 -size 等选项中同样有 大于、小于给定数值之用

© 本文著作权归作者所有,转载前请务必署名

Post navigation


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK