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…
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:…
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…
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…
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…
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…
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…
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…
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…
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…