Tag Info

New answers tagged

1

The warnings in some of the answers here are heavily exaggerated - like this one: having your home directory in git is almost certainly going to make your life an impossible mess I have been having my $HOME folder as a git repo for a long while and it works without any problems, as long as you know how git works it's going to be fine. See it in action ...


1

The tilde when used alone in the context of ls ~ will list your home dir as ~ is a shortcut to your home dir. If you did ls ~brown then you will list the contents of brown's home dir. VIM, unless told otherwise, will create a back-up copy of a changed file: myFile myFile~. This behavior is good as it creates a back-up but if you don't want it, add to you ...


34

Either quote it: rm -i '~' rm -i "~" rm -i \~ Or reference it by a path, instead of just a basename: rm -i ./~ rm -i /path/to/~ Note that, despite being a funny-looking single character name, this is conceptually no different than if you had created a file named SOME$PATH by doing touch 'SOME$PATH' And tried to remove it by doing: rm -i SOME$PATH ...



Top 50 recent answers are included