bash - What is the name of the text to the left of a command (as typed in a terminal) called? - Ask Ubuntu


i wondering if there name leftmost text (after type command) in linux terminal.

like

ubuntu@ubuntu:~$  

do have name this?

it's called primary prompt string, set shell according ps1 environment variable. set per user basis, interactive shells only, (usually) defined in ~/.bashrc default \s-\v\$.

on system:

$ echo "$ps1" \[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$  

and expanded to:

username@hostname:pwd$  

check prompting section of man bash see each token does.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User