In Bash, file starts with a "-"

Posted by Dean J on Server Fault See other posts from Server Fault or by Dean J
Published on 2010-03-29T19:38:36Z Indexed on 2010/03/29 19:43 UTC
Read the original article Hit count: 598

Filed under:

An application created a directory called "-123456" in my /tmp directory.

In Bash, rm -rf * returns: bash: cd: -7: invalid option

rm -rf "-123456" Same thing.

Help?

© Server Fault or respective owner

Related posts about bash