this post was submitted on 31 May 2025
957 points (99.1% liked)
Programmer Humor
23844 readers
2934 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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