this post was submitted on 31 May 2025
971 points (99.1% liked)

Programmer Humor

24104 readers
2329 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
[โ€“] schnurrito@discuss.tchncs.de 33 points 1 week ago (19 children)

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

load more comments (18 replies)