1
vote
1answer
100 views

lxterminal prompt unwanted characters

I'm on fresh Lubuntu 14.04 installation. I am using LXTerminal and this is the prompt I'm setting through .bashrc file: export PS1="\e[0;36m$ \w \e[m" Assume I enter a command up to 15 characters ...
1
vote
2answers
49 views

How do I access the command prompt in Lubuntu?

I have managed the task of loading Lubuntu into a partition of my ThinkPad T41, and am so far very happy with it. I have learned that there is a driver available for my old scanner, but apparently it ...
2
votes
1answer
28 views

Ctrl+a doesn't return all the way back in terminal

I recently updated my prompt to look something like [user@User] ~/wroking/directory (git-branch) ↳ using the following code in my .bashrc source ~/.local/bin/git-prompt.sh ...
0
votes
1answer
37 views

Accidentally removed terminal prompt

I tried to remove my old version of python on my Linux laptop with the terminal but accidentally removed the terminal app. How to get it back?
0
votes
1answer
37 views

Customise the prompt and display the Battery Capacity?

How do I customise the zsh-Prompt to show for example the time, the wi-fi status and the Battery Capacity? Is it possible to see my current battery charge in the prompt? I have only found a way how ...
2
votes
3answers
71 views

Confusion regarding sub-directories?

I have a question to count and display number of sub-directories including hidden ones(invisible sub-directories) recursively. I can display sub-directories recursively but I am confused with the ...
1
vote
1answer
426 views

Creating new user, inconsistent bash prompt

I've created a new user profile with: useradd kitty passwd kitty mkdir kitty chmod 0700 kitty chown -R kitty:kitty adduser kitty sudo #when I did it I initially didn't ...
0
votes
1answer
47 views

How do I “:set prompt” by default for a particular program?

I'm new to Linux. I installed Haskell and was going through a tutorial, which showed me I can :set prompt "ghci> " to change the prompt. I like the way this looks. How can I make it so that ...
3
votes
2answers
4k views

Changing behavior of bash prompt when functioning as root

Before you click away, this isn't the typical "how do I make my bash prompt have color" question. I've already customized my bash prompt to look like this: [user @ host]----[$(pwd)] $ where ...
4
votes
3answers
2k views

How can I shorten the bash prompt's current path to one letter per directory?

I can't remember where, but I've already seen the bash prompt's current path shortened in an interesting way: every directory contained in the path is replaced by its first letter only. For instance: ...
3
votes
1answer
103 views

Correct place to put colors of prompt (PS1)

Say I want to change the colors of my PS1, or for the sake of simplicity I just want to change the content, so I want to do this: PS1="touch me : " My problem, doubt is: If I put this in ...
2
votes
1answer
66 views

Ubuntu Terminal Colouring

I got this snippet of code from @mdo (http://markdotto.com) and optimized it to Ubuntu. But now when I type something and erase with backspace, the whole line is erased. I don't know too much of bash ...
1
vote
2answers
578 views

When I switch to new user, I am unable to see the name in the prompt - Why?

I have just created a fresh installation of Ubuntu 12.10 I have created a www-data user account. When I switch to www-data, I cannot see www-data at the front of the prompt. What is the technical ...
5
votes
2answers
2k views

Where to learn GRUB commands?

First of all is the GRUB essential to have Ubuntu? If yes, where can I learn it's commands? It makes me dead when it stops booting Linux and displays dangerous prompts. And is there any good ...
3
votes
1answer
777 views

What does ' (single quote) do in the terminal?

If I type ' (single quote, next to the <enter> button) in the terminal and then press enter it drops to a > prompt. What exactly is this, what's it used for, and what type of commands can I ...
3
votes
1answer
176 views

.bashrc not responding

I'm having an odd problem with the .bashrc file. I've added the following line so git could show me the current branch on prompt (I saw this tip here) #Show branch in status line PS1='[\W$(__git_ps1 ...
0
votes
1answer
134 views

Strange thing happening in command prompt

I'm using Ubuntu in command line mode, no GUI. I'm new to UNIX, so I'm a bit confused by something that just happened. I accidentally typed "suspend" instead of "pm-suspend", and my root~#: prompt ...
19
votes
2answers
14k views

How can I shorten my command line (bash) prompt?

Currently it is: michael@Castle2012-Ubuntu-laptop01:~/Dropnot/webs/rails_v3/linker/spec/controllers$ Outside of renaming my machine and directory structure... How could I make it be something ...
15
votes
2answers
8k views

Changing colors for user, host, directory information in terminal command prompt

Is it possible to change the colors in the command prompt for the user@computer, as well as the the current directory and command parts of the prompt display? I've already seen something like this ...
1
vote
1answer
372 views

Terminal line glitches

I installed Ubuntu 11.10 mini + LXDE and wanted to make my command line different in terminal (than just plain white), so I added blue color to path line (everything until $ sign) and it works fine ...
3
votes
2answers
399 views

How to specifiy prompt location in terminal?

I am using GNOME 3.2 and my problem is that while working on terminal my prompt is usually at the bottom of screen. As GNOME notifications keep popping up on new mail, chat or song change, it becomes ...
2
votes
1answer
915 views

Problem to write long lines in terminal

I have defined a PS1 prompt multi-line in my server with Ubuntu 11.04. The problem occurs when I write a long command, the line cuts before the end of terminal and it continues at beginning the same ...
15
votes
4answers
1k views

How (and where) can one change 'user@host $:' pattern in gnome-terminal?

When I start terminal in Ubuntu, I see: ilya@HOST:~$ I need to add a timestamp to this, something like: 2011-10-09T09:32:00 ilya@HOST:~$ How can I configure this?
3
votes
1answer
115 views

cursor stops in the middle after pressing home key

In terminal i've changed my PS1. I think it maybe causing issues with allowing me to hit the home button. Normally by hitting the home button it's suppose to return to the first character on the ...
4
votes
1answer
312 views

Custom bash prompt is buggy

I followed some articles on how to change the prompt, I've got the result I was looking for, but when the cursor reach the end of the screen it doesn't go new line and tab completion it's strange. # ...
2
votes
1answer
262 views

Anomaly with bash PS1 definition

My root and admin user both have the same .bashrc file. The prompt section of the .bashrc is the following: if [ "$color_prompt" = yes ]; then ...
11
votes
5answers
8k views

trim the terminal command prompt working directory

When using the terminal in a deep folder structure sometimes the prompt can take up most of the line. Is there any way in which I can trim the working directory? I know I can do PS1="\W >" to only ...