0
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.

「~」という名前のファイル/フォルダを消す

Posted at

やりたいこと

何かの拍子にできてしまった「~」という名前のファイル/フォルダを消したい。
しかし、

$ rm -r ~

とやるとホームディレクトリ直下を全部破壊してしまう

試した環境

dockerのcentos7コンテナ上

$ docker pull centos:7
$ docker run -it --rm centos:7 bash

解決方法

$ rm -r \~

もしくは

$ rm -r ./~
0
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
0
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?