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?

More than 5 years have passed since last update.

Linuxで特定の拡張子のファイルを削除する

Posted at

いつも思い出せず検索しているので。
/hoge 以下の拡張子が .foo のファイルを再帰的に削除。

$ find /hoge -type f "*.foo" -delete

参考

特定の拡張子のファイルを削除
https://qiita.com/puriketu99/items/02d5e4611192077dabd6

特定の拡張子を持つファイルをサブディレクトリまで検索して削除
http://kusumoto-jp.org/article.php/find

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?