I accidentally created a directory who's name begins with the "$" character, and now I can't figure out how to ls its contents or rm -r it altogether.
I've tried quoting the name like this ls "$[dir-name]" as well as escaping the special character like ls \$[dir-name], neither of which worked.
Any tips? Thanks!
rm *filebecause that will delete all files with filenames ending in "file" – Lesmana Apr 24 '11 at 08:52