Oh no! 🤦♂️
-
rm -rf "~" may work?
In case you are just testing it out, don't use
-rf
Your~
directory is most probably empty, so userm -d
instead, to prevent all footguns in case you put the wrong character in the end.-d, --dir remove empty directories
I feel safe doing
rm -d /
.
I feel safe doingsudo rm -d /
.Because it won't delete anything that has a file in it.
-
OK I'll bite, how do you get rid of a literal ~ directory?
Using Nautilus or Dolphin.
-
This post did not contain any content.
Stopped thinking
-
At least we know vibe coders will eventually destroy themselves.
just wait until they start vibe coding on their brain implant
-
Stopped thinking
Never started
-
We call this a whoopsie daisy.
Whoopsie daisy-cutter.
-
OK I'll bite, how do you get rid of a literal ~ directory?
Just give rm the entire path or a relative path like ./~
-
This post did not contain any content.
I think it should've started with "stopped thinking"
-
OK I'll bite, how do you get rid of a literal ~ directory?
A method not yet mentioned is by inode, (I've accidentally created filenames I didn't know how to escape at the time like
--
or other command line flags/special characters)ls -li
Once you get the inode
find . -type f -inum $inode -delete
-
Using Nautilus or Dolphin.
True if these are installed, but if I'm on a server's command line they probably aren't.
-
I did this once (for real, but without AI assistance)
I fairly recently tried to do a
rm match*
but accidentally put a space between thematch
and the*
… -
No, but single quotes will.
huh, I almost removed my entire home directory
-
I did this once (for real, but without AI assistance)
I did it recently. Its like watching your computer commit seppuku.