find /path/to/search -type f -newerat “YYYY-MM-DD HH:MM:SS” 该命令与按照修改时间查找文件的命令类似,只是将 -newermt 替换为 -newerat 即可。 – 按照状态改变时间查找文件: find /path/to/search -type f -newerct “YYYY-MM-DD HH:MM:SS” 该命令与按照修改时间查找文件的命令类似,只是将 -...
only store files newer than DATE-OR-FILE --one-file-system stay in local file system when creating archive -P, --absolute-names don't strip leading `/'s from file names --recursion recurse into directories (default) --suffix=STRING backup before removal, override usual suffix ('~' unless...
-cnewer file :比文件 file 更新的文件 -ctime n : 在过去n天内被修改过的文件 实例 将目前目录及其子目录下所有延伸档名是 c 的文件列出来。 find . -name "*.c" 将目前目录其其下子目录中所有一般文件列出 find . -type f 将目前目录及其子目录下所有最近 20 天内更新过的文件列出 find . -ctime...
find dir[ ...] -atime T find dir[ ...] -ctime T find dir[ ...] -mtime T find dir[ ...] -newer NAME -atime T:列出atime在指定时间被更新过的文件。 -ctime T:列出ctime在指定时间被更新过的文件。 -mtime T:列出mtime在指定时间被更新过的文件。 -newer NAME:使用文件或目录比较,列出比...
二、Linux 命令 1. Linux 命令大全 Linux 命令大全 Linux 命令大全 1、文件管理 cat chattr chgrp chmod chown cksum cmp diff diffstat file find git gitview indent cut ln less lo
--newer=DATE-OR-FILE, --after-date=DATE-OR-FILE only store files newer than DATE-OR-FILE --one-file-system stay in local file system when creating archive -P, --absolute-names don't strip leading `/'s from file names --recursion recurse into directories (default) --suffix=STRING bac...
# find . -type f -amin +7 -print -newer option The -newer option specifies a reference file with a modification time that will be used to select files modified more recently than the reference file. Find all the files that were modified more recently than file.txt file: ...
Most systems also have a locate command for finding files. Rather than searching for a file in real time, locate searches an index that the system builds periodically. Searching with locate is much faster than find, but if the file you’re looking for is newer than the index, locate won’...
-newer file : 列出比file还要新的文件名 例如: find /root -mtime 0 # 在当前目录下查找今天之内有改动的文件 find . -size +12k # 查找当前目录中大于12KB的文件,注意c表示byte image.png 5、cp命令 该命令用于复制文件,copy之意,它还可以把多个文件一次性地复制到一个目录下,它的常用参数如下: ...
Most systems also have a locate command for finding files. Rather than searching for a file in real time, locate searches an index that the system builds periodically. Searching with locate is much faster than find, but if the file you’re looking for is newer than the index, locate won’...