I'm a beginner to using bash on OSX, and I somehow created a ~ dir in a project subfolder. (It appears as a directory, rather than a symlink.)
Is there a safe way to get rid of this ~ directory instance without bash expanding the tilde wiping my local user directory?
This is a really goofy question, but it would be a huge help to figure out how to deal with this.
Solution:
I ended up using rm -rfi ./\~, which worked safely.
Thanks, everyone!
rm -r '~'should do. Orrm -r './~'. If you want to be really safe, runrmwith the-ioption (interactive) that will prompt you before erasing anything. E.g.,rm -ri './~'. – gniourf_gniourf Dec 14 '12 at 16:17