.bashrc is the Bash shell configuration file for a user's terminal login session.

learn more… | top users | synonyms

0
votes
2answers
39 views

How to backup and reinsert .bashrc-like files with post-install script?

I have my proudly written .bashrc and .bash-aliases files. Sometimes, I edit them. More often, I reinstall the whole system. What is the best and simplest way to preserve content of files (for ...
1
vote
1answer
32 views

bash alias with parameters [duplicate]

I would like to swap from csh to bash, then I have to set the .bashrc with the commands I use. Translating alias with parameters seems to be not easier as I believed. csh: alias gr 'xmgrace -legend ...
0
votes
1answer
53 views

how to configure terminal in a text boot?

I use tmux in xterm and gnome-terminal.Configuring gnome-terminal's background and foreground is not an issue as it can be easily done through gui itself.Few things to mention: I can configure ...
2
votes
2answers
165 views

.desktop file with .bashrc environment

I am using IntelliJ IDEA, and it uses some of the environment variables defined in the .bashrc script. If I run its shell script from the terminal everything works fine but if I create a .desktop ...
1
vote
2answers
3k views

How do I source a shell script for Node Version Manager?

Hi and thanks for looking! I am new to Linux/Ubuntu, but I have set up an Ubuntu box on which to run Node.js. I have had moderate success, but now I need to be able to easily upgrade my version of ...
0
votes
0answers
38 views

How to add samtools in the PATH permanently [duplicate]

I installed samtools executables within my bin directory under home directory. Installation works perfectly well. I am using Ubuntu 14.04 version and it has .profile and .bashrc in my home directory ...
2
votes
3answers
5k views

I accidentally overwrite /etc/bash.bashrc file. Please give the default content

I accidentally overwrote the /etc/bash.bashrc file. Please give me the default content in that file to restore, or the file itself.
-1
votes
0answers
36 views

bash: ${debian_chroot!-}: bad substitution

So I'm learning how to shell script and i got this error. Every thing I've read on the other posts makes it seem like a directory file path like most terminal commands have stashed away. My version of ...
1
vote
1answer
37 views

ROS installation:Environment setup:No such a file or directory

according to wiki tutorial of ROS installation. All of the previous steps are ok for me, but when I try to do the part of environment setup. When I type: echo "source /opt/ros/jade/setup.bash" ...
3
votes
1answer
8k views

Where is bashrc profile for root?

I believe the question says it all. Also if it doesn't exist where do I create it. Ubuntu 10.04
69
votes
4answers
96k views

Why ~/.bash_profile is not getting sourced when opening a terminal?

Problem I have an Ubuntu 11.04 Virtual Machine and I wanted to set up my Java development environment. I did as follows sudo apt-get install openjdk-6-jdk Added the following entries to ...
1
vote
2answers
3k views

nvcc not found, but only when using sudo

I can't get ANYTHING working on linux. I'm trying to compile CudaMiner. sudo make: ypt-jane.o `test -f 'scrypt-jane.cpp' || echo './'`scrypt-jane.cpp mv -f .deps/cudaminer-scrypt-jane.Tpo ...
0
votes
2answers
51 views

bash is looking for a missing ' " ' , unexpected EOF

I have problem with bash which is looking for a missing character but I cannot find it. Maybe there is something else wrong? Every time I open the terminal I get this error: bash: ...
0
votes
3answers
53 views

Customize ISO - SQFS — Add Custom BashRC - Alias to Ubuntu Live DVD iso [closed]

I would like to customize my Ubuntu Live iso and add an command alias that I use each time I load disk. This way I don't have to open my logs for the command(s) I use each time, mainly to start a vnc ...
1
vote
2answers
215 views

Why is my function not re-evaluated in PS1?

I'm trying to have a part of my prompt set dynamically by a function, so in my .bashrc I have: asdf () { echo -n $(pwd) } PS1="\u@\h:\w $(asdf)\$ " Opening a shell gives me what I expect at ...
1
vote
1answer
74 views

.bashrc and fortune/cowsay

I'm using Xubuntu 14.04 with XFCE (of course). I just added a line to ~/.bashrc: fortune | cowsay -f tux And everything is fine, when I open a terminal, cowsay runs with a fortune quote. Except one ...
6
votes
3answers
11k views

How to save terminal history manually?

It's my understanding that the history file is updated when the terminal exits. But sometimes my computer crashes out, and the terminal doesn't exit cleanly, and then I lose those commands from my ...
1
vote
1answer
78 views

cd: “No such file or directory” after setting a variable

$ export AMBERHOME=$AMBERHOME/home/rcibsd/amber14 $ cd $AMBERHOME bash: cd: ...
16
votes
1answer
2k views

How to display random jokes from www.icndb.com in your terminal?

I already know that you can get some nice quotes/jokes using the fortune program. But I've found in this urwird script a new source of fun that I'd like to have when I open a new terminal. This time ...
0
votes
0answers
40 views

how to add opened filename to the title bar of a terminal?

I have tried hard googling changing the default display of the title bar of the Terminal by adding the following into my .bashrc file PROMPT_COMMAND='printf "\033]0;%s@%s:%s\007" "${USER}" ...
4
votes
2answers
133 views

How to stop command number incrementation on duplicate command?

Problem Thanks to this question, I succeed to forbid my bash to stock the same command more than one time if I write many times the same command. However, there is still a detail that I cannot ...
36
votes
7answers
238k views

Where is .bashrc?

I feel stupid asking, but I can't seem to find the answer to this anywhere. I'm trying to follow these instructions to edit my bash prompt, but there is no .bashrc in either my user directory ...
2
votes
1answer
233 views

How to change my home directory?

I have a current /home/user/ directory for ~ but I want to change it to be at /user/home/ /user/home already exists. The option of using usermod is not going to work because I don't have access to ...
16
votes
1answer
17k views

Why is /etc/profile not invoked for non-login shells?

Login and non-login shell defined as: su - $USER # will give you a login shell bash # will give you a non-login shell /etc/profile is not invoked for non-login shells, such as when you start ...
0
votes
1answer
304 views

Throwing error message when opening terminal

I'm new on Ubuntu and ROS. I installed two different distro. (groovy and hydro). When I open the terminal I take this error. bash: /opt/ros/groovy/setup.bash: No such file or directory I remove ...
3
votes
2answers
5k views

I think I accidently deleted the PATH variable

Whatever I try to run, I get the error: The command could not be located because '/usr/bin' is not included in the PATH environment variable. I had some modification in my .bashrc file but then ...
25
votes
3answers
22k 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 ...
0
votes
2answers
243 views

Environment Variable seems to be set yet not working

I use Ubuntu 14.10 with bash shell. I downloaded a gradle distribution and moved it to a new directory. I want to permanently set a environment variable to point to the bin sub-directory of the ...
0
votes
2answers
156 views

Why I can't edit .bashrc file in Ubuntu?

When I do vim .bashrc and try to edit the file it gives following error. Can't open linked file for editing When I do ls -la it shows .bashrc -> ...
3
votes
2answers
410 views

bash: script/bash_completion_dog: No such file or directory

When I open my terminal, I get this message. I tried to correct my .bashrc file but could not find anything related to this error message. How do I resolve this? As suggested by terdon, I tried the ...
1
vote
1answer
71 views

Altering command to start application by mouse click - how to

I have Google Earth installed on my Ubuntu 14.04 (Trusty Tahr) and, in order to display clamped polygons on it, I have to start it with the command LIBGL_ALWAYS_SOFTWARE=1 googleearth. I would ...
3
votes
2answers
26 views

Maintaining server-wide dot files in bash

Let's say I'm administering an Ubuntu setup with multiple users for my organization. We have a standard .bash_profile and .bashrc with aliases, prompt settings, PATH declarations, etc... that we want ...
15
votes
3answers
18k views

Configure gnome-terminal to start bash as a login shell, doesn't read .bashrc

I'm trying to integrate RVM with gnome-terminal. Per default, gnome-terminal does not start bash as a login shell. I enabled run command as a login shell as suggested in this answer about the same ...
4
votes
2answers
136 views

Where is bash's “shopt extglob” turned on for my interactive shell?

I see that extglob is on but I'd like to know where this is set. $ shopt extglob extglob on $ Didn't find it in these files. ~/.bashrc ~/.bash_profile ~/.profile /etc/bashrc (no such ...
0
votes
1answer
29 views

Can someone give me content of a fresh bash_profile text? [duplicate]

Could someone give me the content of a fresh .bashrc ? I did not find it with Google. Why ? Because I unfortunately ecrased it.
5
votes
1answer
95 views

Use the bang-commands (e.g. '!!') of bash in scripts and aliases?

Is it possible to use the so-called bang-commands (! + command/symbol, like e.g. !! or !$:p) in bash scripts and in bash aliases? I wanted to add the line alias getit='sudo apt-get install !!' to ...
0
votes
1answer
86 views

strange code appears in terminal

So I was trying to install openfoam on ubuntu 14.04 and there are two problems I need your help with. One, a strange code appears everytime I run the terminal(I've attached a picture of it). Two, I ...
0
votes
0answers
18 views

Export $PATH issue in linux mint [duplicate]

BTW I'm a novice user of Linux I'm using Linux Mint Cinnamon 17.1, I had Ubuntu before I've just installed rvm ruby and some ruby gems... in one terminal session. I echoed PATH on that session ...
1
vote
1answer
45 views

Maven 2 mysteriously showing up in $PATH

I'm upgrading to maven 3 but have hit a small snag in that maven 2 is mysteriously showing up in my PATH variable. I've checked ~/.bashrc, ~/.profile, /etc/bash.bashrc, /etc/environment, /etc/profile ...
1
vote
1answer
50 views

Secure Shell isn't propery loading .bashrc

I've got a seemingly simple issue - I have a 15.04 server that I connect to via ssh. Currently, I have a couple of folders added to my PATH environment variable in my .bashrc file: #... (rest of ...
1
vote
1answer
287 views

TypeError: 'NoneType' object is not iterable

I am trying to install a toolbox for analyzing spinal cord MRI images. install dependencies are: python 2.7, FSL and git. I have installed them. I launch the installer: ./installer.py but errors ...
1
vote
1answer
729 views

Customize Colors for Bash Terminal

I found this nice color library called Solarize which promises to liven up my hacking experience with a color terminal. I am not where to add the Solarize files to change. I found some ...
0
votes
1answer
75 views

arm linux gcc compiling.. exported path in .bashrc doesn't work with sudo but it works with su

I'm a 1 week long linux user. I've added export PATH=$PATH:/opt/FriendlyARM/toolschain/4.5.1/bin to .bashrc for friendlyarm project and it works nice. The arm-linux-gcc -v command shows me ...
1
vote
1answer
129 views

Changing Background Image in Multiple Terminals

I was wondering if anyone would know how to change the background image in the terminal in a unique way. I know how to change it so that every instance of the terminal has the same background, but I ...
0
votes
1answer
94 views

.bashrc edit messes up terminal command arrow-up history print

I wanted to give my terminal prompt in Ubuntu a more personal look, and wanted to change the text prior to the '$' when writing a command. From what I've found this is done by editing the .bashrc ...
7
votes
1answer
276 views

How can I preset aliases for all users?

I have Ubuntu 14.04.2. I want to make it so all users automatically have a specific set of aliases. I have my aliases set in my personal .bashrc, but I don't want to have to manually copy them into ...
0
votes
1answer
88 views

What is meant by “put the file in your path” [duplicate]

I am little confused about an instruction I came across. It stated "put the file in your path". I interpreted that as to add PATH=$PATH:'~/.conkystart' to my ~/.bashrc. The file is ~/.conkystart ...
0
votes
3answers
85 views

Can't access hidden bashrc file

I enter the command '~/.bashrc' and get the message 'Permission denied.' I login into sudo, try it again, and get the same message. What can I do to gain access to this file and edit it?
1
vote
1answer
41 views

New shell terminal points to different bash_profile [closed]

When I launch new terminal it points to some different bash profile. Here in my $PATH are set to default, $JAVA_HOME is blank When I source my .bashrc and and .bash_profile located at home then I am ...
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 ...