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.

Filter by
Sorted by
Tagged with
0
votes
1answer
56 views

Green terminal prompt vanished from Ubuntu 20.04

It's a bit silly but as you can see, the initial words (prompt) displayed in the terminal look very simple (as you know, it has like a green color), something I didn't see at first since I executed ...
0
votes
1answer
35 views

Prompt a user for filename and path, test if file exists, if it doesn't exist create a blank file with that name

So far I have this #!/bin/bash printf -x "What file are you looking for?: " read x if [ -x x.txt ] then echo "ok" else echo "nok" fi But I have no idea where to go next, I need to have the ...
6
votes
1answer
324 views

Adding a tab and newline to my terminal prompt

My terminal prompt is way too long. If I enter a long command, it gets wrapped to the next line which is hard to read. I thought I'd take a page from ParrotOS and just have the commands entered on ...
2
votes
0answers
36 views

Can I style the Alt+F2 prompt?

I'm using Ubuntu 19.10. My main issue with it is that the Alt+F2 prompt darkens the entire screen underneath it while open and I find the resulting blink overstimulating. I looked on Google to no ...
0
votes
0answers
42 views

Terminal prompt appears multiple times in the same line

I am new to Ubuntu. When I try to run some command and press Enter my root prompt is coming next to the previous one, .i.e on same line as below. root@test:/# root@test:/# root@test:/# root@test:/# ...
2
votes
1answer
1k views

Meaning of $ and # symbols for normal and root user in terminal [duplicate]

What do the symbols mean # and $. Why # for root? Where do these conventions come from?
1
vote
2answers
101 views

Xfce4-terminal, midnight commander, show prompt in title

Issue. In xfce4-terminal, how can I display actual prompt from terminal in title when midnight commander is running? Funny is, that when I connect for example via ssh to old Centos (Linux ocms7-app 2....
1
vote
0answers
48 views

Repeated unnecessary password prompts

My Ubuntu 18.04 desktop keeps throwing up keyring password prompts that are clearly unnecessary, since I can just cancel them and continue working without trouble. This happens immediately after I ...
0
votes
0answers
142 views

disable ssh key passphrase prompt

I want to disable this popup: when using the terminal
0
votes
0answers
33 views

Stuck at login: prompt missing on Ubuntu 18.04

This is what I see when after power up Ctrl+Alt+F3 doesn't do anything How can I solve? (VMWare VM on Windows 10 x64)
0
votes
1answer
295 views

Automatically answering an interactive prompt with “yes”

Some daemons ask if they shall be restarted, when they've got an update. I get asked whether I want to restart them or not. It opens a purple colored window, where I am supposed to navigate to yesor ...
1
vote
2answers
635 views

How do I hide the hostname in my terminal

I'm using zsh with powerlevel9k theme and I would like to know how to remove hostname from my terminal. This is how my terminal looks right now: I would like to change it to only show kathi instead ...
12
votes
2answers
2k views

How can I fix the dull colors I am getting in Ubuntu 19.04 Terminal?

I've just recently switched to Ubuntu 19.04 and I am now getting dull colors in terminal but only outside of programs: In comparison you can see the vivid colors I am used to when I use ranger: I ...
0
votes
0answers
35 views

How can I prompt for device password before applying updates?

I have an encrypted boot partition on an USB drive. How can I prompt the user to insert the USB drive, and decrypt it before applying system updates? I can write the script to decrypt and mount the ...
1
vote
0answers
44 views

Does Bash for Windows create an own desktop?

I downloaded Bash (Ubuntu 18.04) for Windows 10 yesterday and created my account, downloaded a couple of files there. i closed the prompt, now when i open it, it starts from System32 folder i got back ...
17
votes
1answer
3k views

How can I use the arrow sign in my bash prompt?

How can I use these red and green arrow signs in the bash prompt? update 1 This is my .bashrc file if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\[\...
0
votes
0answers
103 views

Is there a way to change passphrase prompt for ssh?

I wanted to change the prompt for ssh login, Enter passphrase for key 'path/to/key': to something else. Is that possible? Sorry I'm not really sure on the right verbiage, but I don't mean the PS1 ...
1
vote
0answers
70 views

How do I get prompt colours and auto-complete on 18.04 for a new user created with useradd?

I use Tilix, which is imo one of the best VTE based terminal emulators for Linux. If I create an Ubuntu 16.04 image on DigitalOcean, connect to it via SSH and then configure a new user (as below), ...
1
vote
2answers
114 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 ...
2
votes
1answer
7k 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
29 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
60 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
226 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 ...
2
votes
1answer
2k 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
285 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.
3
votes
1answer
923 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
91 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
942 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
4k 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
512 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 ...
145
votes
6answers
193k views

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

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, (base) is there ...
-1
votes
1answer
476 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
771 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
63 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
222 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 ...
3
votes
1answer
19k 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
55 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
58 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
654 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
124 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 ...
2
votes
0answers
254 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 ...
2
votes
1answer
2k 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
175 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
814 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
74 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
371 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
751 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
100 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
959 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
147 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 -...