The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
33 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, ...
2
votes
1answer
49 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
57 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:/...
0
votes
0answers
18 views

How to get rid of cryptswap1 and create a new cryptswap1

I've been experiencing a bug during the past few days, ever since recovering my partitions with testdisk after stupidly typing "sudo sgdisk --zap-all /dev/sda." This happened when I was trying to wipe ...
2
votes
1answer
33 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
46 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 ...
0
votes
0answers
19 views

use a different password for the prompts

I installed Ubuntu for the first time since 2006, its awesome. So i installed and went for the encrypted home dir install, just for fun. Now every time i need to do something that requires sudo I am ...
0
votes
1answer
52 views

How to change command line prompt name and add path of current directory after name? [duplicate]

Currently my command line prompt looks like this nuve@nuve-Inspiron-5547:~$ but I want to change it Azer's Terminal:"Path of current directory". How can I do this? I need exact code line to add to ...
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
48 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
92 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.. ? [root@...
3
votes
1answer
134 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: $ PS1="\033[0;...
3
votes
2answers
412 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
98 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
62 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
64 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
176 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: PS1='${debian_chroot:+($debian_chroot)}\[\033[...
2
votes
1answer
81 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
109 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 ...
197
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
1k 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
253 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
39 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) frank@...
1
vote
1answer
106 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 ...
2
votes
2answers
562 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
456 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
108 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
77 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
88 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
108 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
90 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
1k 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. https://github.com/mcandre/dotfiles/...
1
vote
1answer
72 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
253 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
434 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
48 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 GIT_PS1_SHOWDIRTYSTATE="...
1
vote
1answer
124 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?
3
votes
1answer
832 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
157 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
75 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
530 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
77 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
308 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
51 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
51 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
960 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
3k 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: ...
32
votes
3answers
10k 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
3k 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
2k 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 ...