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

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 33 points 6 days ago (19 children)

OK I'll bite, how do you get rid of a literal ~ directory?

[โ€“] JollyGreen_sasquatch 7 points 5 days ago

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

load more comments (18 replies)