admin 管理员组文章数量: 887021
2024年2月20日发(作者:一般属性克制什么属性)
shell find -newermt用法
The `find -newermt` command is used to search for files and
directories that were modified after a specific date and time.
The basic syntax of the `find -newermt` command is:
```
find
```
Here's an example to find all files modified after a certain date and
time:
```
find /path/to/directory -newermt "2022-01-01 00:00:00"
```
This command will search for all files and directories in the
specified directory (`/path/to/directory`) that were modified after
January 1, 2022, 00:00:00.
You can also use relative dates and times with the `-newermt`
option. For example, to find all files modified within the last 7
days, you can use:
```
find /path/to/directory -newermt "-7 days"
```
In this example, `-7 days` represents a relative date and means
"within the last 7 days".
You can further combine the `-newermt` option with other `find`
command options to narrow down the search criteria, such as file
type, size, or ownership.
Note that the `-newermt` option is available in GNU find version
4.3.3 and later. If you're using a different version of the `find`
command, you may need to use alternative options or methods to
achieve the same result.
版权声明:本文标题:shell find -newermt用法 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/free/1708439187h524369.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论