Can't delete a file that starts with -
I've somehow created a file that starts with a '-' and I can't seem to do anything to it. The file is "-backup_log.log", and everytime I try to delete it, move it, vi it, the command thinks it's a unrecognized flag:
Quote:
|
Iyou have mc installed use it to delete the file.
|
in case you do not have mc installed.
you can copy the file to a temp directory and delete the whole directory. use the absolute path. i just tried, it worked. if anyone has a easier method, please help.. |
I guess that rm ./-hm_backup_log.log should solve your problem
|
Quote:
|
All times are GMT -5. The time now is 01:43 PM. |