diff --git a/find.md b/find.md index aa9017139..ba85b41f2 100644 --- a/find.md +++ b/find.md @@ -42,6 +42,15 @@ find -size +2G # Larger than 2GiB ``` +```bash +-newer file.txt +-newerm file.txt # modified newer than file.txt +-newerX file.txt # [c]hange, [m]odified, [B]create +-newerXt "1 hour ago" # [t]imestamp +``` + +### Access time conditions + ```bash -atime 0 # Last accessed between now and 24 hours ago -atime +0 # Accessed more than 24 hours ago @@ -52,12 +61,7 @@ find -mtime +1w # Last modified more than 1 week ago ``` -```bash --newer file.txt --newerm file.txt # modified newer than file.txt --newerX file.txt # [c]hange, [m]odified, [B]create --newerXt "1 hour ago" # [t]imestamp -``` +These conditions only work in MacOS and BSD-like systems (no GNU/Linux support). ### Condition flow