this post was submitted on 21 Nov 2026
437 points (98.2% liked)

Programmer Humor

34233 readers
1427 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 3 years ago
MODERATORS
 
top 28 comments
sorted by: hot top controversial new old
[–] A_A@lemmy.world 29 points 5 hours ago (2 children)

Layman explanation :
"PS1" is the primary shell prompt.
So, it is that which the linux operating system displays at the start of each line where you, the user, type a command.
Obtaining "#" as the prompt would normally indicate to the user that the next command is to be accepted as having "root privileges" (thought it could do whatever to the system) ... but in the above case, the "#" doesn't mean that ... nor anything other than : that prompt as been changed.

[–] diaphragmwp@discuss.tchncs.de 4 points 2 hours ago* (last edited 2 hours ago)

Ah yes, the linux operating system... It's actually usually Linux distros that display lots of things with colors, other unixes are usually just the hostname with $ or #. Identifies the machine and isn't distracting, just how I like it. Except for the part when I forget which dir I am in, of course.

[–] dbx12@programming.dev 20 points 5 hours ago (2 children)

I already found another one!

echo $USER prints my current user name. Once I do USER=root it shows im running as root. And I wasn't even asked for my sudo password! :O :O :O

[–] goferking0@lemmy.sdf.org 1 points 1 minute ago

You joke but at work our security office mass reset passwords because they saw a list of users in the pwd file. Even after others pointed out it was just a list of usernames not their credentials AND that it couldn't be the actual credentials as we're an AD shop

They would definitely fall for that 😭

[–] daychilde@lemmy.world 2 points 1 hour ago

Huh. It is worth bearing in mind not to trust $USER before doing something based on it, though, if that thing is important.

[–] Kojichan@lemmy.world 4 points 4 hours ago

So...

PROMPT=$P$G$_#

??

[–] Jakylla@jlai.lu 223 points 10 hours ago (3 children)
$ echo "Access granted."
Access granted.
[–] urushitan@kakera.kintsugi.moe 20 points 7 hours ago

gork is this tru

[–] ThunderComplex@lemmy.today 114 points 10 hours ago
[–] blx@piefed.zip 44 points 9 hours ago (2 children)

Fuck, it works on my machine. When can we expect a patch?

[–] daychilde@lemmy.world 6 points 1 hour ago

echo "Patch installed."

[–] polite_cat@lemmy.world 45 points 8 hours ago (1 children)

Have you read the full report?

You can work around the issue by removing the french language pack from your system.

[–] slazer2au@lemmy.world 22 points 8 hours ago

Holy crap, didn't expect it to go I to that much detail.

[–] gnutrino@programming.dev 79 points 9 hours ago (1 children)

Dear god, when combined with terminal2shell this can compromise every Unix-like system ever created.

[–] Kangae_Hishiryo@scribe.disroot.org 2 points 49 minutes ago

It all started with prompt2output... Who would have known

Neeeerrrrrrds!

[–] saltnotsugar@lemmy.world 25 points 9 hours ago (1 children)

Looks like the hacker was exporting your PlayStation 1!!! Lock this place DOWN.

[–] AwesomeLowlander@cozyver.se 6 points 6 hours ago (1 children)

Would you steal a PlayStation?

[–] TechnoCat@piefed.social 2 points 1 hour ago

No, but I would download a PS1.

[–] khannie@lemmy.world 1 points 4 hours ago* (last edited 4 hours ago)

For half a second I nibbled the onion. It didn't taste good.

Maybe 0.1 seconds. The filthy taste is still in my mouth though.

[–] communism@lemmy.ml 4 points 7 hours ago (1 children)
[–] aqua_cat@pawb.social 3 points 2 hours ago (1 children)

I am pretty sure you can tipe "bash" to switch to it in any shell.

[–] daychilde@lemmy.world 1 points 1 hour ago

tipe “bash” to switch to it in any shell.

I'm pretty sure typing bash turns it into bash, not any shell

;-)