rename directory that has leading - in name

chuck adams k7qo at
Sun Aug 17 05:43:10 UTC 2008

in bash:

how do you escape the - if it is the leading character in a file
or directory name.

I tried

mv -name newname  with

mv "-name" newname
mv '-name' newname
mv \-name newname

and I thought I would have caught the correct incantation.

thanks in advance,


More information about the kubuntu-users mailing list