0

This question already has an answer here:

I'm trying to figure out what this (obretschlt2-w7) is, from my command-line prompt. I'm using a conda environment, with the name µ_env, with my Username mu. However I can't figure out where the 2nd field is coming from. I'm logged into a secure server VPN, through my work, but I don't ever recall seeing this. What is this name and where is it coming from?

(µ_env) obretschlt2-w7:~ mu$ pwd
/Users/mu

Output from echo $PS1, as asked for (in comment).

(µ_env) \h:\W \u\$

marked as duplicate by Kusalananda, G-Man, thrig, sam, X Tian Nov 19 '18 at 16:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 3
    please add output of echo $PS1. – ctrl-alt-delor Nov 18 '18 at 16:09
  • $ echo $PS1 (µ_env) \h:\W \u\$ – O.rka Nov 18 '18 at 16:40
  • 1
    I wonder. How did you tag with hostname, but not know it was the hostname? – ctrl-alt-delor Nov 19 '18 at 10:55
0

Is that not your hostname on your system?

Try:

cat /etc/hostname

Edit:

$ echo $PS1 (µ_env) \h:\W \u\$

\h means hostname

Source: wiki.ubuntuusers.de/Bash/Prompt


Command "hostname" may also show your hostname

  • $ cat /etc/hostname cat: /etc/hostname: No such file or directory – O.rka Nov 18 '18 at 16:39
  • | $ echo $PS1 (µ_env) \h:\W \u\$ | \h Hostname auf dem die Shell läuft bis zum ersten "." | Source: wiki.ubuntuusers.de/Bash/Prompt | so it's your hostname. | Which OS do you use? – User8461 Nov 18 '18 at 16:45
  • \h means hostname – User8461 Nov 18 '18 at 16:47
  • 1
    command "hostname" may work to show your hostname. – User8461 Nov 18 '18 at 16:48
  • obretschlt2-w7 does that mean your are using Windows 7? ;-) – User8461 Nov 18 '18 at 16:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.