Questions tagged [prompt]

A string of characters displayed by interactive shells to signal the shell is waiting a user input.

A prompt is a string of characters displayed by a shell or other command line program to indicate that it is waiting for user input.

Further reading

656 questions
6
votes
1 answer

What do these sequences mean in the PS1 variable?

I have trouble understanding what \[\e]0;$PWD\007\] and \[\e(0\]b\[\e(B\] mean. I am setting up my prompt on MobaXterm on Windows and those two sequences were in the default one. They were at the very beginning and very end respectively. Here is a…
Telokis
  • 162
  • 6
4
votes
1 answer

Unknown word comes up automatically after changing password on a user

I am using Redhat 5.4 and when I tend to change Oracle user password this comes up right after hitting Enter: passwd oracle Retype new UNIX password: passwd: all authentication tokens updated successfully. [root@server~]# H0!gh%12 -bash: H0!gh%12:…
2
votes
2 answers

Why my bash prompt changed to be "root@bogon"

Used to be "root@localhost". The system is CentOS Release 6.4 in a VMware virtual machine. Yesterday I did some test of the user and group commands. And I noticed the tty1 login prompt changed to be "bogon login". And then the pts prompt changed…
user43312
  • 961
1
vote
1 answer

Custom Shell Prompt for Root per sudo/su user

Is it possible to have multiple users using a root shell but with different prompts on the BASH shell for each session/user? We have some training environments with our users using su/sudo to get to a root shell for demonstration purposes. Note: I'm…
shocko
  • 49
1
vote
1 answer

Remove new line from batch prompt

I have the following prompt: PS1="\[\033[s\033[0;0H\033[0;41m\033[K\033[1;33mCWD:\w | \d | \t | CM: \# | \V\s\033[0m\033[u\] <\[\033[0;32m\]\u@\h\[\033[0m\]>\$" Everytime I type a command, it types a new line after. How can I remove it? The output…
0
votes
0 answers

Getting the prompt on Linux

Real noob question: Am trying to search for a file on Linux am using- systemctl to list all the files but after this list has finished displaying my prompt does not return, so am unable to search for the file I require as the prompt does not return…
OB1
  • 1
0
votes
0 answers

How do you get your prompt back after executing a command like systemctl on linux?

Real noob question: I was running a script on Linux- systemctl and I want to search for a specific file but before I can type in the new code | grep 'filenames I need to get the prompt back but am unable to do so, I have tried using the space bar…
OB1
  • 1
0
votes
1 answer

Cursor appears at the beginning of command line

I'm having difficulty with specifying PS1 on Ubuntu 18.04.5. I use the following code in my .bashrc file and the result looks exactly as it should. export PS1=$'\e[38;5;046m…
Dan
  • 101
0
votes
1 answer

How to update prompt PS1 in bash scripts

I would like to update the bash prompt inside a script. Essentially, I have to use a VPN to remotely work on another computer and would like it to get reflected by the bash prompt. Unfortunately whatever I change in PS1 is not update in the…
Celdor
  • 129
0
votes
1 answer

How is this "secondary prompt" called formally and how it basically differs from the "primary" one?

When you open Unix, say in Ubuntu 16.04, you can type \ (the backslash symbol for newcomers) and hit enter, and that will open seemingly some kind of a "sub-prompt" or what I also like to call a "secondary prompt". I wondered about the differences…
user149572