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?
nobody ever asks
howamipwd my friend. Print working directory.
What location do you want?
For the current directory, there’s
pwd
For the server, there’shostname, 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 thePS1variable for that.Thank you for the tip about the PS1 variable. I couldn’t remember what that was called either
hostnameorhostname -fif you want the fqdnThank you! I know what I’m going to alias it to!
whatamishould be an alias touname -adeleted by creator
I’m on Redhat (recent version) if it matters






