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で特殊な名前のファイルの削除の仕方

Last updated at Posted at 2017-06-22

問題

例えば誤って '---'という名のファイルを作ってしまった場合、
通常に削除しようとすると、

rm ---

rm : missing operand
Try 'rm --help' for more information

というエラーが起きてしまいます。

解決法

rm ./---

で無事ファイルを消せます。

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?