The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
14 views

Shrink Terminal Prompt Path [duplicate]

This has crept up on me over the past many weeks to the point I am getting annoyed by this lengthy string as it gets in the way of reading the output messages. Here is what my Terminal looks like: ...
1
vote
1answer
30 views

open new tab as same user?

I often use sudo to administer other users on my system. How can I open a new tab in gnome-terminal with the same user name? Usually, when I open a new tab, I need to run sudo su THEUSER again. ...
0
votes
1answer
41 views

Difference between $ and # in Linux environment

What is the difference between $ and # signs in Linux environment. As I started working on Linux and I found that both are different. I mean they do have different set of privileges.. ? ...
3
votes
1answer
73 views

Desktop File to open terminal with an alternative prompt

I want to create a .desktop file, which opens a terminal with a prompt, that display the current time and the current working directory in green color. I achieved this via the command: $ ...
3
votes
2answers
404 views

Creating Hello World from a command prompt, and then show results in Firefox [closed]

I want to make simple and quick programs through the command line and then show results in Firefox... And I find that Hello World is the simplest way to learn it :) How can I do it?
0
votes
1answer
62 views

Startx take me root@hostname prompt with high video but no gui

I have Ubuntu 14.04.3 LTS trusty on a PowerPC. When I first login, I got a prompt user@hostname I then run sudo startx It runs through the whole procedure but instead of getting the GUI desktop I ...
1
vote
1answer
60 views

How to get to terminal? [duplicate]

I am a novice, using Ubuntu 14,04. I have tried to install Skype, and it does not work. I need it installed, but I read all the suggestions, and they all refer to using some sudo commands in what I ...
1
vote
1answer
42 views

How to use FQDN instead of just the host part at command prompt?

My current Ubuntu 14.04 command prompt is like username@host being the server FQDN host.domain.com but I want the command prompt be username@host.domain.com. How I can do that?
2
votes
1answer
173 views

Command prompt is over written by previous commands!

My system has Ubuntu Server 12.04 installed in text-mode (no X-Window) and a command prompt that is defined in my ~/.bashrc file by following line: ...
2
votes
1answer
70 views

How can I be sure “apt-get install” successfully finished its work?

I have Ubuntu 14.04 and I intend to download Skyrim. So I put the command into the terminal sudo apt-get install playonlinux. Everything was loading fine and it seemed to be working, however before ...
2
votes
0answers
90 views

New Ubuntu 14.04 installation with full disk encryption prompts for passphrase in console

My previous Ubuntu 14.04 installation launched to a graphical screen with the Ubuntu logo and a text prompt under it for passphrase insertion. I did a distro upgrade, which broke my installation, so I ...
192
votes
6answers
21k views

How can I make my shell prompt look like a cheeseburger?

I want my shell prompt to look like a cheeseburger! 🍔🍔🍔 It would be nice if it also displayed: username, hostname, and current directory.
2
votes
1answer
751 views

Disable authentication prompts in 15.04?

I'd like to know how I can disable the authentication prompts when opening apps such as Synaptic, mounting disks and so. I got my user as passwordless set in sudoers, but seems the change to systemd ...
0
votes
2answers
206 views

How to make the terminal prompt make sound every time i am prompted to write a command?

I want every time i have the command prompt (i.e, end of a command) to get a sound to get attention to the terminal [as i am using laptop \a character is not going to work with me]. The command i want ...
0
votes
2answers
33 views

Is it possible to create a prompt based on the existence of a vpn-connection?

when away from home, I like to connect to the internet via vpn. It would be great to see whether the connection is on in the prompt, like having: frank@mycomputer ~ (without vpn active) ...
0
votes
0answers
52 views

Initiating 14.04

I just upgraded from 12.04LTS to 14.04 LTS. On reboot I get this: mount: mounting /dev/loop0 on /root failed: Invalid argument mount: mounting /dev on /root/dev failed: No such file or directory ...
1
vote
1answer
86 views

Editing my Bash prompt

I'd like to put something into my bash prompt, but I'm not quite sure how to do it. I use the Cloud Foundry Command Line Tool to push code up to my servers. The cf tool can be set to a specific ORG ...
1
vote
1answer
337 views

reprepro - Is there any chance to enter the passphrase via bash-script?

I use "reprepro" for getting the latest Debian packages out of my local repository, which works fine manually. Now I need to automate this process through a cron job but the reprepro passphrase is a ...
0
votes
3answers
365 views

Not a Ubuntu question, but a Linux query in general: MS-DOS like OS for Linux? [closed]

I'm looking for a Linux OS that runs fully through the terminal, kind of like MS-DOS. I'm using a 100 Mb device that I intend to use for only basic functions like transfer files from various drives ...
1
vote
1answer
104 views

Run a file like I could in command prompt

How can I run a file like I could in command prompt? Like say I wanna run this file C:/Music/BobDylan/MrTambourineManOriginal.mp3 I'd first navigate using cd to the Bob Dylan folder, and then ...
0
votes
1answer
70 views

Ubuntu install from USB issues

I have downloaded Ubuntu to my USB but am having trouble with the install. I reboot my computer and boot from the USB. Then the Ubuntu screen pops up and I select install ( also have tried the demo ...
1
vote
0answers
68 views

Is it possible to keep the command prompt always at the middle in the gnome terminal?

Is it possible to keep the command prompt always at the middle in the gnome terminal? After entering each command the command prompt line is coming to the bottom, so is it possible to keep the ...
0
votes
1answer
87 views

Update manager always wants to reboot

I have the recent Ubuntu 14.04 version installed. Since a few days the update manager keeps asking me to reboot. Even if I do reboot and no new updates are installed, it asks again after startup. How ...
0
votes
6answers
82 views

bash prompt chenged itself to a plain “#”

Until I logged in today, as usual- my bash prompt was the standard "username@currpath # ". But today, for me, it's just "# ". If I login as root, it is normal. bashrc seems fine (as compared to ...
1
vote
3answers
925 views

Git prompt won't colorize

I want my git prompt in bash to colorize (green for clean repos, red for dirty repos). Right now, it shows plain white text no matter the git state of my cwd/repo. ...
1
vote
1answer
61 views

How to leave prompt when accidentally enter Grave accent character?

If I write Grave accent character in the terminal, my prompt becomes bquote: and I cannot leave it in anyway. How can I leave this prompt?
1
vote
1answer
213 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
270 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
45 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 ...
1
vote
1answer
109 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?
2
votes
0answers
610 views

UTF-8 character not showing properly in tmux

I use ♪ character in my zsh theme's for prompt. But in tmux, my prompt was behaving weirdly, showing extra spaces, like this: ♪ ~ I can type from here ♪ ~ Instead of here like in zsh, and sometimes ...
1
vote
1answer
140 views

Remember Ubuntu password but ask for sudo confirmation

When I'm done with making Ubuntu remember my password and do not ask for it before risky actions... Is there a way to get safe pop up confirmation window (without password input, just OK or cancel)? ...
0
votes
1answer
64 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
0answers
524 views

Chromium Ubuntu 13.10 - No webapp setup prompt no webapp icon

I have a completely fresh install for Ubuntu 13.10 64-bit on Dell Latitude E6510. (I also had the same problem on the same laptop using 13.10 32-bit). I use Chromium as my web browser. Webapps are ...
2
votes
3answers
76 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
2answers
262 views

Problem with grep command

I have three files testx,testy and testz all in same directory Sikh. All three files contain same data or content. The contents are: aaabb Aaaaa AAAAA bbbcc Bbbbb BBBBB ff–ff Ccccc CCCCC ...
1
vote
3answers
50 views

Confused with the alias solution?

I am trying to define alias for a group of commands counting recursively and displaying the number of all sub-directories encountered for any working directory (including ones with invisible file ...
1
vote
1answer
47 views

Having problem with alias?

I am trying to define alias for a group of commands counting and displaying the number of all files in account’s space with the names starting with g, t, and w. I got the result with the following ...
0
votes
1answer
794 views

How to count and display number of all files in any working directory?

I am looking for a command to count and display the number of files in any working directory. Further I want to set alias noAf for the command. I have searched for it a lot. I found the following: ...
0
votes
2answers
2k views

How to run .profile from .bashrc file?

I have a file name .test with a echo statement. Now I want to run this file from .bashrc file. What I have done so far is: My .test file contains: echo "hello everyone" My .bashrc file contains: ...
26
votes
3answers
8k views

What does “${debian_chroot:+($debian_chroot)}” do in my terminal prompt?

In my terminal prompt definition in my .bashrc file, among other things, I have this snippet of code: ${debian_chroot:+($debian_chroot)} What does this do, and do I need it?
2
votes
3answers
2k views

Edit ZSH theme for virtualenv name

I use zsh theme intheloops. The theme looks like this when no virtual env. is active -- an empty line -- [sourabh@skynet] ~/Code/django_apps/cope (master) ⚡ ❯ and when an env. is active, (env ...
2
votes
1answer
1k 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 ...
1
vote
1answer
164 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 ...
9
votes
3answers
12k 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
4k views

why doesnt ubuntu 13.04 prompt me for a password after suspend?

I am on 13.04 and waking from suspend takes me straight to desktop without a password prompt even though it is set to ask for a password in the brightness and lock settings. Also I recently tried to ...
98
votes
3answers
75k views

How can I install and use powerline plugin?

Powerline is a plug-in to display informational and beautiful statusline for vim, tmux and shell prompt for bash, zsh. Vim statusline: How can I install and setup Powerline for different ...
5
votes
3answers
3k 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 (excepted the last one) is replaced by its first ...
2
votes
1answer
682 views

Bash Prompt Changes Colors on ls

My prompt is: PS1="\`if [ \$? = 0 ]; then echo \[\e[33m\]':)'\[\e[0m\]; else echo \[\e[31m\]':('\[\e[0m\]; fi\` \e[0;1m\w\e[1m\n\$ " The problem is when I use ls, the prompt changes colors to the ...
3
votes
2answers
145 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 ...