Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [prompt]

The prompt is a series of characters used by any terminal interface to indicate that the terminal is ready to receive another command. Questions using this tag should be restricted to questions about the prompt, how to customize it, etc.

0
votes
2answers
68 views

VIM, when I shell to prompt using :!bash I'd like the command prompt to reflect me being in a shell

I am in vim all day lately, practicing code. Often times when I want to do something from the prompt - I will use a key binding for :!bash and do what ever I need to do, then type exit to return to ...
0
votes
1answer
145 views

Why does “(base)” appear in front of my terminal prompt II?

I have conda with two environments working, I have installed "conda_nb" and since I did it, the word "(base)" appears always in my prompt, I discovered that I can remove for a session using "conda ...
0
votes
0answers
21 views

Command needed by dialogue box generated after clicking on “Ubuntu” Tile on Windows 10 Startup Menu

I desperately need to know what response is being sought by a DOS-type dialogue box that appears every time I click on the “Ubuntu” tile on my “Windows 10 Startup Menu”. I had previously asked if ...
1
vote
1answer
48 views

Divide command prompt into multiple lines

When working on the terminal like: algorithms@assistant:~$ ls Desktop Downloads Music Public Templates Videos Documents gtd.org Pictures snap version-check.sh the command ls ...
1
vote
1answer
41 views

Cannot export PS1 over SSH

Trying to customize shell prompt on a Ubuntu 18 LTS server over SSH. On the server, the .profile sources .bashrc correctly, and .bashrc has force_color_prompt=yes uncommented. The prompt is not ...
1
vote
1answer
123 views

__git_ps1 not found but does exist

~/.bash_aliases where I set PS1, and is included in ~/.bashrc (the default settings) # color PS1 PS1="\[\033[01;90m\]\D{%H:%M} \[\033[01;33m\]Ubuntu\[\033[00m\] \[\033[01;34m\]\w\[\033[01;35m\]$(...
1
vote
1answer
65 views

After a system upgrade, when I `su -` I get bash-4.4 as a prompt instead of root@hostname

I just upgraded my system. After logging in as root using su - there is no root username in my prompt, it's just -bash-4.4# What should I do here? Thanks.
2
votes
1answer
103 views

What does a hash sign (#) at the end of the directory path in a Bash prompt mean? [duplicate]

I was in the middle of installing updates for Ubuntu when I came across an error, which allowed me to "Start a new shell to examine the situation". Doing so placed me at the top of my directory ...
0
votes
1answer
65 views

New user, broken bash prompt parsing?

I created a new user. When I su into the new user, I get the following bash prompt: \[\e]0;\u@\h: \w\a\]\u@\h:\w$ For what it's worth, I created this user with the following Ansible task: user: ...
3
votes
3answers
546 views

Why user@hostname color changes after sourcing a file?

I noticed whenever I source a file, the color of user@hostname changes: Why?
3
votes
2answers
1k views

script to show git branch in bash no longer works on ubuntu 18.04

In my 16.04 installation I put this in my ~/.bashrc file: #Show git branch in commandline parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' } export PS1=...
0
votes
1answer
162 views

How to assign variable to PROMPT_COMMAND

How can I increment a variable assigning its value to PROMPT_COMMAND variable? Inside .bashrc I created variable a and assigned value to 0 and then added this a=0 PROMPT_COMMAND=`((a++))` When I ...
12
votes
3answers
6k views

Why does “(base)” appear in front of my terminal prompt?

As per the title, I'm wondering why I have (base) on the left of my terminal prompt. If I run source ~/.profile in the terminal, it disappears. If I close that terminal and reopen a new terminal, (...
0
votes
1answer
302 views

No line break with colored git branch in bash prompt [duplicate]

I added a function to my .bashrc to parse the git branch I'm currently working in and display it in my bash-prompt according to several tutorials on this topic. My code snippet looks like this: ...
1
vote
1answer
346 views

Cannot get colored prompt despite setting PS1 in .bashrc

One of the machines I log into via ssh doesn't give me a colored prompt, despite setting it via .bashrc. The .bashrc part in question is # set a fancy prompt (non-color, unless we know we "want" ...
1
vote
1answer
41 views

Shim prompts “Verification succeeded” on every startup

I have Ubuntu 16.04.3, and installed nvidia-384.111. I enabled secure boot in the BIOS, and signed the driver via mokutils. On reboot, shim prompted to enroll the new MOK. So, nvidia drivers were ...
3
votes
1answer
164 views

Where is the timestamp in this script that sets the prompt?

I came across this old post, which I find useful. Now, I'm trying hard, but in vain, to tell which part of it is responsible for printing the timestamp at the end of the dashes. The following is the ...
2
votes
1answer
7k views

“export PS1=” for customizing shell prompt

I wanted to customize my shell prompt to include the time. So, I did export PS1='\t\w\$'. My prompt now looks like 18:57:37~$. I don't know how to prepend it with username@hostname. Also, I don't ...
0
votes
1answer
49 views

My ubuntu terminal is opening as “gdhobe@vfroot-Thinkpad-T440:~$” I want to open it as “vfroot-Thinkpad-T440:~$” [duplicate]

My ubuntu terminal is opening as "gdhobe@vfroot-Thinkpad-T440:~$" I want to open it as "vfroot-Thinkpad-T440:~$" Usually terminal opens as vfroot-Thinkpad-T440:~$ How this issue could be solved.
1
vote
1answer
37 views

prompt changes color when I become a permanent superuser

I made my prompt more visible in the bashrc file but when I try to become a permanent superuser with sudo su - I get that horrible old blue on black, which is nearly impossible to see. How can I make ...
1
vote
1answer
475 views

How do I change hostname? [duplicate]

The hostname of my name is very long, which is odd. How can change the hostname for my system? My hostname, currently, is himanshu@himanshu-Lenovo-ideapad-100-15IBD:~$ Is there any way I can ...
0
votes
1answer
104 views

\w is not abbreviating $HOME as ~

I'm SSHing into my schools linux servers, and My PS1 is currently set to: PS1="$USER@${HOSTNAME%%.*} (\w) % " and when I first connect my prompt correctly shows: myusername@servername (~) % but ...
3
votes
0answers
191 views

It takes an unusually long time to get into command line prompt [closed]

I am on Ubuntu 16.04 LTS and the system is fully updated. Recently I noticed that it takes several seconds to show the prompt when I open the terminal for the first time after login to Ubuntu. That ...
1
vote
1answer
996 views

How to enter gnome default keyring password after the prompt disappears?

Launching Evolution has gnome-keyring prompting for the default keyring password on Ubuntu 16.04. If Ctlr+Alt+Tab is pressed during that process, or if the prompt is not answered fast enough, the ...
0
votes
1answer
116 views

Customise Bash Terminal Font Colours

A short while ago I asked this question, on how to customise the bash terminal font colours. The question was answered and I got the colours wanting, using the link provided by a helpful user. The ...
4
votes
2answers
750 views

Shell prompt customization and cmd behavior

I want my prompt to display: current (absolute) working directory, colored in green and in a NEW line, the dollar sign and an empty space. I am using this line in .profile export PS1='\e[0;32m$(pwd)...
0
votes
0answers
36 views

Change Terminal 'user@host' colours - Gnome [duplicate]

I've pretty much got the terminal colour scheme I want, however the user@host colours stick out like a sore thumb, and really don't fit in with the scheme. See screenshot in link: How do I go about ...
0
votes
1answer
143 views

Shell with coloring and showing the git branch?

My friend has installed some kind of a shell for terminal and on that machine i can see in which branch I am at the moment. It looks like this: And now i want to install that on another machine but i ...
1
vote
1answer
410 views

PS1 Prompt Only Showing “$” For Domain Users

Regardless of which directory I'm in the PS1 prompt only displays $ for domain users, whereas, if I login using a local user the prompt displays as expected. The ~/.bashrc file for the test domain ...
1
vote
0answers
48 views

Removable Media -Never prompt or start programs on media insertion- for all users

I am using Ubuntu 16.04 Desktop. I would like to know where (filename) the settings under All Settings-> Removable Media are stored. I would like to have the settings "Never prompt or start programs ...
1
vote
1answer
597 views

Evolution password prompt at login

I have searched high and low for an answer and though several googles looked as if they were my problem, they turned out to be slightly different. Please read carefully before pointing me to an answer ...
0
votes
1answer
83 views

problem setting up bash_profile [duplicate]

I cd to my '~' directory, then I made a bash_profile with nano ~/.bash_profile with an alias alias test = 'mkdir test' then when i type source ~/.bash_profile it says -bash: alias: mk: not found -...
0
votes
3answers
2k views

What is the meaning of prompt that appears in Linux? [closed]

What is the meaning of prompt root@localhost# that's appear on terminal? How to set my name at the place of root in root@localhost? Suppose if I added my name ankush@host then what is the meaning of ...
0
votes
0answers
19 views

when I open the terminal i get this message please help how to exit this? [duplicate]

No command 'Script' found, did you mean: Command 'script' from package 'bsdutils' (main) Script: command not found kanav@kanav-Inspiron-7548:~$: command not found : command not found No command '...
1
vote
0answers
80 views

Abnormal long prompt / change username & computer name [duplicate]

I've just tested out Ubuntu 16.04, my first time with Linux. Now I installed it just to try, and found out that u like it! However, since this was only a test, I didn't select username and computer ...
1
vote
0answers
134 views

How to get a prompt to save unsaved changes when logging out/rebooting/shutting down Ubuntu 16.04?

Say, I open gedit, type something, click restart, and just lose everything I have typed.. And it seems to be the case not only for gedit.. So, how can I make Ubuntu to ask me whether I want to save ...
1
vote
4answers
8k views

How do I stop Ubuntu from asking for my password every time I install something?

Whenever I try to install a program I get a password authentication prompt asking me to punch in my password. I would like to know how to disable this. I tried to google it and most of the stuff I ...
0
votes
2answers
3k views

How to add colored git branch to my bash prompt?

I shortened my bash prompt (using the code at line 120 in my bashrc): PS1='\u:\W\$ ' Now I wanna add the colored git branch to the shortened prompt, so that when the branch has uncommitted changes, ...
3
votes
2answers
522 views

See whether sudo mode is on (password is cached) on the command-line prompt

I want to know whether it is possible to indicate on the command-line (ideally in the prompt), whether sudo mode is on. By sudo mode I mean that I have already entered my password correctly once in ...
0
votes
0answers
205 views

Guake character problems in ssh with zsh

I am using Guake to SSH into a server. My terminal is using zsh and Oh My Zsh and works fine. The server I ssh into also using zsh with the exact same settings and theme. However, whenever I toggle ...
1
vote
1answer
71 views

Gnome-terminal prompt does not clear up fully

I am running ubuntu 16.04 LTS and gnome-terminal within unity. Sometimes when I clear my terminal the command line isn't cleared up fully. Some bit of the command left and I can't remove them. I ...
2
votes
1answer
1k views

Show other command line prompt in Midnight Commander (mc)

Is it possible to have different command line prompt in pure bash and mc? So, sometime i have mc started, but but panels switched off (Ctrl+O), and when i return back to the terminal after some period ...
6
votes
1answer
2k views

How to change the font style of terminal prompt in Ubuntu MATE 16.04

The Mate terminal like any other terminal emulator in Ubuntu or any other OS has an input line like: abc@xyz:~$ How to change the font style of this particular line? Other than this one inputs ...
4
votes
2answers
290 views

Customized prompt does not hold when a child bash is ran

I have been learning bash, and while doing so I played around with the .bash_profile file to be able to put greeting messages etc. Later I just removed these changes. But after doing that my default ...
3
votes
1answer
751 views

Change the font size of a unicode character in my bash prompt

I've implemented a custom bash prompt by exporting PS1 in my .bashrc, but I'm using a unicode character that appears very small unless the font size is changed. Unfortunately that means text looks ...
0
votes
1answer
341 views

Command history count stuck at 2000

I have custom PS1 bash prompt which includes command history count. It has work flawlessly for weeks, but today I noticed it's stuck at 2000. When I execute command, it gets to 2001 as it's supposed, ...
4
votes
1answer
244 views

Bash prepends the symbol '@' to $PS1. How do I get rid of it?

I'm running Ubuntu 16.04 and bash keeps putting '@' in front of my prompt, regardless of the value set in ~/.bashrc. I've tried setting different values both in the ~/.bashrc file and from within the ...
1
vote
0answers
645 views

Non-printing characters showing up in terminal prompt

Without color my prompt looks like this: [0] [dimo414@dimo414:/tmp] $ echo $PS1 | sed 's/\x1b/\\e/g' \n[0] [dimo414@dimo414:/tmp]\n\$ I add some color and \[...\] delimit it: [0] [dimo414@dimo414:/...
2
votes
1answer
48 views

Make locally compiled programs request password graphically

I have an application that I downloaded from my class' website for our custom avr robot and it requires root privileges to send our binaries to the robot via usb. When I try to use it with sudo, the ...
0
votes
1answer
440 views

Terminal does not show prompt until enter is pressed in Ubuntu 14.04.2

When I launch the terminal in Ubuntu 14.04.2, it does not show the prompt until the enter key is pressed. I think some process is preventing the prompt from appearing. Could anyone please help me in ...