If you accidentally created a file with a - in the beginning then you want to remove it, you have to do : # rm ./-thefile