LoginSignup
1
3

More than 5 years have passed since last update.

【rm】Linux コマンド

Posted at

rm [option] file,dir

指定したファイルやディレクトリを削除する。

option

-d
ディレクトリのリンクを解除する。管理者権限が必要。

-f
ファイルを削除する際に確認メッセージを表示しない。ファイルがない場合でも警告メッセージを表示しない。

-i
ファイルを削除する際にファイルを削除して良いか、確認メッセージを表示する。

-r
ディレクトリを再帰的に削除する。
(ディレクトリ以下の全てのディレクトリとファイルを削除)

-v
ファイルを削除する前にファイル名を表示する。

1
3
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
3