Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
1 vote
0 answers
37 views

No Password Prompt During Boot (Kubuntu 21.10)

I use Kubuntu 21.10, and have KDE 5.24.1, but this happened on older KDE versions, too. When I startup, I choose my installation from GRUB, and then I am presented with what should be the password ...
user avatar
1 vote
1 answer
122 views

No login prompt on console Ubuntu 20.04.3 LTS (running on qemu Synology)

With one of the last Ubuntu updates I can't login on console anymore, because I'm getting no login prompt. I'm running Ubuntu 20.04.3 LTS on a Synology Virtual Machine and try to connect to the ...
user avatar
  • 29
0 votes
1 answer
44 views

Troubles with custom bash prompt

I am trying to set a custom bash prompt to also include history line count and time in 24h format, both in different colors, aside from a standard user@host prompt. I have seen this post Custom bash ...
user avatar
1 vote
1 answer
102 views

applications get stuck launched with sudo

If I launch Thunar from the command line it works, but if I try to launch Thunar using sudo, only the icon on the status bar shows up but no window; the same problem happens with gparted, synaptic and ...
user avatar
  • 761
0 votes
1 answer
145 views

How can I disable password prompts in Ubuntu

My wifes computer running Windows 10 became unusable. Could not repair Windows and didn't want to re-install because she was afraid we would lose her pictures. I was able to retrieve her pictures by ...
user avatar
0 votes
1 answer
97 views

Ubuntu 18.04 black screen

I am using Ubuntu 18.04. My laptop configuration is HP 250 G7 Core i3 Intel 7th gen 4 GB RAM 1 TB HDD Problem. I have Ubuntu 18.04 LTS on my laptop. When I start it up it gives a black screen with ...
user avatar
2 votes
1 answer
358 views

How to shorten current working directory in bash prompt dynamicaly [duplicate]

So I'm looking for a way to shorten the path in the prompt if it reaches a defined length, such as: user1@localhost:~/Pictures/awesome_trip/ Would be fine, but if we cd into more sub-directories such ...
user avatar
0 votes
0 answers
60 views

Terminal window title vs Git branch name in the command prompt?

I wanted to add information about Git branch to my command line prompt, and I found this post: parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' } export ...
user avatar
  • 272
1 vote
0 answers
236 views

How do I ask password by GUI prompt while using commands using sudo in terminal?

I am using Ubuntu 20.04 focal. I have been wanting the GUI password prompt for executing command with sudo in terminal.Example consider following command to be runned by terminal : sudo nautilus So ...
user avatar
0 votes
1 answer
34 views

I'm being haunted by an "Authentication dialog" and need help

Like the title says I'm being haunted. No matter what I fill into the damned prompt it says the information is wrong and asks if I want to try again. It just won't stop. Here is a picture of the ...
user avatar
2 votes
1 answer
68 views

Following a recent upgrade to Ubuntu 20.04 installation terminal prompt is only displaying 4 characters

Have attempted fix using fonts in tweaks but that also only displays 4 characters for any font name and does not fix problem. Have tried installing alternative desktop and running several different ...
user avatar
  • 21
0 votes
0 answers
218 views

Command not found with no command name

Since I installed powerline-go on my fresh install of Ubuntu 20.04, it throws -bash: : command not found error every time the prompt loads (after running a command, pressing enter, on startup, etc.). ...
user avatar
0 votes
0 answers
396 views

Customize wsl2 ubuntu terminal prompt

How do I change the ubuntu terminal prompt in of wsl2. My git-bash prompt looks like this : where /Algorithms is the base cwd. How do I make ubuntu prompt the same, with the same colors? TIA
user avatar
0 votes
2 answers
1k views

Is tilde '~' normal before dollar '$' sign in terminal prompt? [duplicate]

Is '~' normal before the $ sign, like, robert@robert:~$? I do not remember seeing it before.
user avatar
  • 1
0 votes
1 answer
417 views

select and the PS3 variable

I have a small function that I keep in my profile to give me quick access to some config files: viconf () { COLUMNS=12; printf "Edit config file:\n\n"; select x in ~/.bashrc ~/....
user avatar
  • 243
1 vote
1 answer
80 views

Prompt string PS4 duplicating itself when using set -x

My OS: Ubuntu 18.04.5 LTS I use tracing for troubleshooting a script. I've notice different behaviors in the tracing depending on how I set it up. I would like to understand why it behaves this way. I ...
user avatar
0 votes
0 answers
26 views

grub2 prompt: "grub>" is changed to ">"

So I am at login screen of GNU GRUB 2.02 launched from USB stick. Its prompt is "grub>". When I type "ls" I see all my disks: hd0, hd1, hd2; hd0 is my USB stick, hd2 is my main ...
user avatar
0 votes
1 answer
239 views

how to create an alias which changes the bash prompt?

How can I make an alias along the lines of: command-line bash bashrc prompt ps1 alias=PS1="\d \h $ " which, obviously, won't work. Is there some trick to making assignments from the ....
user avatar
1 vote
1 answer
135 views

Terminal starts fast, but takes time to get ready

I'm on Kubuntu 20.04 and it's been a while since I've noticed that even though the konsole terminal starts fast after I enter the shortcut, it takes some seconds for the command prompt itself to ...
user avatar
1 vote
1 answer
1k views

Git_prompt branch no longer working after upgrade

I made a ps1 prompt a few years ago. Took a while to config it, now after upgrading it no longer works. The .bashprompt script (which gets loaded into my .bashrc along with git-sh-prompt) it will ...
user avatar
0 votes
2 answers
1k 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 ...
user avatar
0 votes
1 answer
946 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 ...
user avatar
  • 31
7 votes
1 answer
1k 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 ...
user avatar
3 votes
0 answers
54 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 ...
user avatar
  • 31
2 votes
1 answer
3k 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?
user avatar
  • 832
1 vote
2 answers
318 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....
user avatar
  • 768
1 vote
1 answer
86 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 ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
  • 35
1 vote
2 answers
3k 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 ...
user avatar
13 votes
2 answers
3k 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 ...
user avatar
0 votes
0 answers
38 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 ...
user avatar
1 vote
0 answers
48 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 ...
user avatar
17 votes
2 answers
7k 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\]\...
user avatar
  • 455
0 votes
0 answers
119 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 ...
user avatar
  • 1
1 vote
0 answers
97 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), ...
user avatar
  • 1,211
1 vote
2 answers
207 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 ...
user avatar
3 votes
2 answers
10k 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 ...
user avatar
0 votes
0 answers
32 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 ...
user avatar
1 vote
1 answer
214 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 ...
user avatar
  • 2,501
1 vote
1 answer
466 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 ...
user avatar
  • 653
5 votes
1 answer
5k 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\]$(...
user avatar
  • 526
1 vote
1 answer
1k 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.
user avatar
  • 13
4 votes
1 answer
7k 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 ...
user avatar
0 votes
1 answer
166 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: ...
user avatar
4 votes
3 answers
2k views

Why user@hostname color changes after sourcing a file?

I noticed whenever I source a file, the color of user@hostname changes: Why?
user avatar
6 votes
3 answers
7k 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=...
user avatar
  • 299
0 votes
1 answer
884 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 ...
user avatar
  • 327
224 votes
7 answers
345k 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 ...
user avatar
  • 2,343
-1 votes
1 answer
826 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: ...
user avatar
  • 1
1 vote
1 answer
1k 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" ...
user avatar
  • 3,902