Bash: Created a ~ (Tilde) in a directory by accident
Posted
by
user1500360
on Super User
See other posts from Super User
or by user1500360
Published on 2012-12-14T15:26:42Z
Indexed on
2012/12/15
11:08 UTC
Read the original article
Hit count: 296
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!
© Super User or respective owner