Linuxfind
Brother even Linux Training
Summarizing these timestamps includes
Copy the code code as follows :
mtime file content last modified
The time that the atime file was read or accessed
ctime file status change time
The meaning of mtime and atime is easy to understand, and CTime needs more explanations. Because the inode maintains the metadata on each file, the inode data also changes if the file-related metadata changes. This can be caused by a series of actions, including creating symbolic links to files, changing file permissions, or moving files. Because in these cases, the contents of the file are not read or modified, so mtime and atime do not change, but ctime will change.
These time options need to be used in conjunction with a value of n , specified as-n,n , or +n.
Copy the code code as follows :
N * 24
+1 means 1 * +24 hours away.
+0 means 0 * +24 hours away
1 means 1 * + from:
0 means 0 * + 0 .
-1 means 0 * +24 , even for future time ...
1. Current hour - Current time ( yesterday - today )
#find. -mtime 0
2. Current time : Before the current hour ( before the day before – yesterday )
#find. -mtime 1
3. Current time (2 days ago )
#find. -mtime +1
4. Current Hour – Current time ( yesterday - today )
#find. -mtime-1
Linux Basic Tutorial Linux uses the Find command to find file usage based on system time