this post was submitted on 22 Sep 2025
985 points (98.7% liked)

Programmer Humor

27660 readers
1470 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
[–] FrostyPolicy@suppo.fi 80 points 2 months ago* (last edited 2 months ago) (19 children)

On Linux file systems you can use any character except NULL, and / is a reserved character.

E.g. on ext-4 "All characters and character sequences permitted, except for NULL ('\0'), '/', and the special file names "." and ".." which are reserved for indicating (respectively) current and parent directories."

[–] xthexder@l.sw0.com 58 points 2 months ago (14 children)

I once accidentally created a file with a newline character in it... it was pretty tricky to fix from command line.

[–] malware@lemmy.zip 86 points 2 months ago (6 children)
[–] exu@feditown.com 15 points 2 months ago

This is why you shouldn't parsels output btw. Use find and read instead

load more comments (5 replies)
load more comments (12 replies)
load more comments (16 replies)