I have a file called -cfg.txt. I think it was created in the gui on a fedora core 4 box. When I try and rename it, I cannot. It keeps treating the - as a parameter, even when I try and do:
> mv \-cfg.txt abc.txt
or
>mv "-cfg.txt" abc.txt
Any ideas on how I can rename and cat this file?
Answers
Add AnswerBy an anonymous user on Mar. 11, 2008
mv ./-cfg.txt abc.txt
Yay!!! Thanks!
Share your knowledge