1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Linuxで指定した日付以降に更新されたファイルのみを表示したい

Posted at

ディレクトリ以下で指定した日付以降に更新されたファイルのみを表示

実行コマンド
find ./ -type f -newermt "2025-09-01" -exec ls -l {} +
# または
find ./ -type f -newermt "2025-09-01" -exec ls -l {} \;
出力例
-rwxr-xr-x 1 root root 4952  9月  1 15:13 ./old/test.py
-rwxr-xr-x 1 root root 6870  9月  2 13:39 ./old/hoge.py
-rwxr-xr-x 1 root root 9840  9月  8 16:53 ./old/aaaa.py
-rwxr-xr-x 1 root root 5350  9月 17 11:00 ./old/fuga.py
-rwxr-xr-x 1 root root 9578  9月 12 17:31 ./hoge2.py

ディレクトリ以下で指定した日付以前に更新されたファイルのみを表示

find ./ -type f ! -newermt "2025-09-01" -exec ls -l {} +
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?