Posts
read more
Rename Files That Start With a Special Character
Suppose you find that you have a file with a special character and you want to delete it:
$ ls-badfile.txt PrintHood reg57.txtFavorites Recent scripts$ rm -badfile.txtrm: invalid option -- 'b'Try 'rm ./-badfile.txt' to remove the file '-badfile.txt'.Try 'rm --help' for more information.$ ls *.txtls: invalid option -- 'e'Try 'ls --help' for more information.