当前位置:网站首页>How to find file accessed / created just feed minutes ago
How to find file accessed / created just feed minutes ago
2022-07-07 02:55:00 【Rich in starch】
problem :
I always forget which file I edit one minutes ago, so I input find . -cmin 1
I always forget the file I edited a minute ago , So I entered find . -cmin 1
find . -cmin 1
or some other value but it worked exactly 1
minutes.find . -cmin 1
Or some other value , But it just works 1
minute .I had to try find . -ctime 2 /*or 3,4...*/
I have to try find . -ctime 2 /*or 3,4...*/
find . -ctime 2 /*or 3,4...*/
.find . -ctime 2 /*or 3,4...*/
.
Then I find another approach which be better: Then I found another better way :
touch -t 12251134 empty /*similar format which 5 or 10 minutes ago */find . -newer empty
I can use date -d'-5minutes' +%m%d%H%M
caculate the time for me. I can use date -d'-5minutes' +%m%d%H%M
Calculate my time .I want to know if there is a simple way to find files accessed 1, 2 or 3... minutes ago. I wonder if there is a simple way to find 1,2 or 3 Files accessed minutes ago .
Solution :
Reference resources : https://stackoom.com/en/question/wsPc边栏推荐
猜你喜欢
随机推荐
PSINS中19维组合导航模块sinsgps详解(初始赋值部分)
fasterxml ToStringSerializerBase报错
写作系列之contribution
CDB PDB user rights management
MySQL - common functions - string functions
[software test] the most complete interview questions and answers. I'm familiar with the full text. If I don't win the offer, I'll lose
Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (time synchronization part)
Redis入门完整教程:复制配置
新标杆!智慧化社会治理
6-6 vulnerability exploitation SSH security defense
Redis入門完整教程:問題定比特與優化
[2022 national tournament simulation] polygon - computational geometry, binary answer, multiplication
Es6中Promise的使用
c语言(字符串)如何把字符串中某个指定的字符删除?
Cloud Mail .NET Edition
记一次JAP查询导致OOM的问题分析
Google Earth Engine(GEE)——Landsat 全球土地调查 1975年数据集
Summary of basic debugging steps of S120 driver
S120驱动器基本调试步骤总结
换个姿势做运维!GOPS 2022 · 深圳站精彩内容抢先看!