You are viewing a single thread.
View all comments View context
12 points

Name a file in Linux ~ and then delete it again.

permalink
report
parent
reply
11 points

rm \~?

permalink
report
parent
reply
6 points

Well if you put it in like that it would give an error. But if you used the right slash you can kiss your home folder goodbye probably. Maybe rm ./~ would work

permalink
report
parent
reply
9 points
*

~ resolves to your home folder only if it’s at the beginning of a path. /~ isn’t the same as ~. Go ahead and test it with something other than rm if you don’t believe me (this is the Internet, I could be lying).

permalink
report
parent
reply
8 points

in tab completion I trust…

permalink
report
parent
reply

Memes

!memes@lemmy.ml

Create post

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

Community stats

  • 7.2K

    Monthly active users

  • 13K

    Posts

  • 288K

    Comments