Bash: Created a ~ (Tilde) in a directory by accident
- by user1500360
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!