this post was submitted on 01 Feb 2026
25 points (100.0% liked)

technology

24253 readers
142 users here now

On the road to fully automated luxury gay space communism.

Spreading Linux propaganda since 2020

Rules:

founded 5 years ago
MODERATORS
 

There's a whoami but no whereami. Like I'm on a shittily conifg'd work server and all it outputs is $>. Am I stupid? What extremely obvious answer is there?

you are viewing a single comment's thread
view the rest of the comments
[–] aebletrae@hexbear.net 10 points 2 weeks ago (1 children)

What location do you want?

For the current directory, there’s pwd
For the server, there’s hostname, as has been pointed out already.

Or are you wondering how to get any of that in the prompt, rather than just $>? You'll need to set the PS1 variable for that.

[–] lurker_supreme@hexbear.net 6 points 2 weeks ago

Thank you for the tip about the PS1 variable. I couldn't remember what that was called either