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

technology

24253 readers
131 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?

all 9 comments
sorted by: hot top controversial new old
[–] ephemeral@hexbear.net 21 points 2 weeks ago

nobody ever asks howami

[–] thagoat@lemmy.dbzer0.com 13 points 2 weeks ago

pwd my friend. Print working directory.

[–] 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

[–] JohnBrownsDream@hexbear.net 6 points 2 weeks ago (1 children)

hostname or hostname -f if you want the fqdn

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

Thank you! I know what I'm going to alias it to!

whatami should be an alias to uname -a

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

I'm on Redhat (recent version) if it matters