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
Post a Comment