linux:find查看最近修改的文件

简介: linux:find查看最近修改的文件

命令格式:

find 路径 -命令参数 [输出形式]

需要使用的参数:

-ctime -n | +n 按照文件的创建时间来查找文件

-n 表示文件创建时间距现在n天以内

+n 表示文件创建时间距现在n天以前


用法示例:

查看根目录/下最近1天增加的文件

$ find / -ctime -1 -ls

参考

linux 如何查看 / 下最近增加的文件

            </div>
目录
相关文章
|
5月前
|
Linux
认识Linux指令之 “find grep” 命令
认识Linux指令之 “find grep” 命令
118 1
认识Linux指令之 “find grep” 命令
|
5月前
|
Shell Linux
【Shell 命令集合 文件管理】Linux find命令使用教程
【Shell 命令集合 文件管理】Linux find命令使用教程
74 0
|
4月前
|
Linux
16. 【Linux教程】find 查找文件和目录
16. 【Linux教程】find 查找文件和目录
84 3
|
14天前
|
存储 Linux Shell
linux查找技巧: find grep xargs
linux查找技巧: find grep xargs
25 13
|
28天前
|
Linux 应用服务中间件 nginx
|
7天前
|
Docker 容器
14 response from daemon: open \\.\pipe\docker_engine_linux: The system cannot find the file speci
14 response from daemon: open \\.\pipe\docker_engine_linux: The system cannot find the file speci
11 1
|
14天前
|
机器学习/深度学习 存储 Linux
linux中强大且常用命令:find、xargs、grep
linux中强大且常用命令:find、xargs、grep
32 9
|
14天前
|
SQL 移动开发 Linux
linux下find、grep命令详解
linux下find、grep命令详解
122 8
|
28天前
|
存储 Ubuntu Linux
linux中的find 命令详细用法
本文介绍了如何将 `find` 命令与 `exec` 结合使用,通过具体示例展示了多种应用场景,如显示文件属性、重命名文件、收集文件大小、删除特定文件、执行工具、更改文件所有权和权限、收集 MD5 值等。文章还探讨了 `{} \;` 和 `{} +` 的区别,并演示了如何结合 `grep` 命令进行内容搜索。最后,介绍了如何在一个 `find` 命令中使用多个 `exec` 命令。这为 Linux 用户提供了强大的文件管理和自动化工具。
|
2月前
|
Linux 数据库
在Linux中,如何在Linux中使用find命令搜索文件?
在Linux中,如何在Linux中使用find命令搜索文件?