rm ./--hoge.txt もしくは rm -- --hoge.txt
というか、manコマンドに書いてある。
$man rm
To remove a file whose name starts with a '-', for example '-foo', use
one of these commands:
rm -- -foo
rm ./-foo
Tipsrm ./--hoge.txt もしくは rm -- --hoge.txt
というか、manコマンドに書いてある。
$man rm
To remove a file whose name starts with a '-', for example '-foo', use
one of these commands:
rm -- -foo
rm ./-foo