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

learn more… | top users | synonyms

0
votes
2answers
14 views

Adding JAVA_HOME (JDK) in .bashrc

I just installed Ubuntu and am Java 7u55 (JDK) and am trying to configure JAVA_HOME as an environment variable. In ~/.bashrc I added: # Exports JAVA_HOME=/home/myuser/sandbox/java/7u55/jdk1.7.0_55 ...
-1
votes
0answers
14 views

Seismic Unix Installation

when I edit /etc/environment file according to instructions here https://sites.google.com/site/ryanjearley/seismicunix_on_ubuntu this message appear and I can't save it, any help? ...
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?
0
votes
1answer
12 views

Changing .bashrc to allow a call to “android” from any directory

I can successfully do the following command in the directory listed kn@MrComp:~/.android_os/adt-bundle-linux/sdk/tools$ android list targets Available Android targets: ---------- id: 1 or ...
7
votes
2answers
111 views

Why does Ubuntu's default ~/.profile source ~/.bashrc?

These are the contents of the stock ~/.profile that came with my 13.10 (commented lines removed): if [ -n "$BASH_VERSION" ]; then if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi fi ...
0
votes
1answer
25 views

How to edit displayed bash name [duplicate]

I've done some googling, and looking around this stack overflow, but this one seems to elude me. How might I reduce/edit the displayed bash name on the terminal prompt? I.E. This: ...
-1
votes
1answer
36 views

Environment Variables and .bashrc [closed]

I need Help in this: that is how to do this Edit the setting file of the user. In our case it should be in the root directory of the user and the name is .bashrc or .bash_profile 2.- Add the ...
0
votes
1answer
22 views

Unable to login to my account using terminal

I was trying to add some lines to the end of .bashrc file by following instructions to install rvm on Ubuntu 12.04 , now when i am putting in password after doing a sudo su the terminal freezes . ...
13
votes
2answers
5k 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 ...
2
votes
2answers
112 views

How do I create an alias that displays the contents of a `history list`?

How do I create a new alias command called cet103demo which displays the contents of the bash history list one page at a time, and also making sure the new alias is automatically loaded when the ...
0
votes
1answer
26 views

Can't see the Username and hostname in terminal

While I'm Opening a New Terminal i Used to get like this before sysadmin@system99:~$ But now i get like this below -bash-4.2$ Seems .bashrc issue, so what i copied bashrc from cp /etc/skel/* ...
1
vote
3answers
87 views

Add a binary to my path

I have an executable. I want to execute the executable in terminal with name only like other commands. I can put my executable in /usr/local/bin or I could add its PATH to ~/.bashrc. Both will work. ...
0
votes
1answer
44 views

In .bashrc how to use the output of “uname -m” as path (I get error: “uname: No such file or directory”)?

In my $HOME/.bashrc I defined the following variable: ARCH="uname -m" Calling from the terminal: $ARCH I'd like to get: x86_64 and I get as I'd like: x86_64 But calling: local/$ARCH I'd ...
0
votes
1answer
26 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 ...
0
votes
2answers
48 views

unable to type commands in terminal

I was install mpi and I have given the path for it in the .bashrc and I closed my terminal and after some time again I opened terminal it's showing following error in the very first line followed by ...
27
votes
2answers
11k views

Bash history search, partial + up-arrow

I have searched, but not found anything on this. I am looking for a functionality in bash, using a terminal. Way back when, I had a user on a debian system, and a friend set me up with a convenient ...
1
vote
1answer
76 views

howto link / execute / add to $PATH: python3.3.5 after manual installation in 12.04 LTS

I'm trying to install python3.3.5 on /home/myUser/XX, where home is located on a separate partition. I'm relatively new to Linux and have only basic knowledge about installing packages on my own, ...
0
votes
0answers
128 views

error while loading shared libraries: libmwlaunchermain.so: cannot open shared object file: No such file or directory

I am running MutSig command, its output: Setting up environment variables LD_LIBRARY_PATH is ...
2
votes
1answer
43 views

bashrc shortcuts in Tmux

I have sets many shortcuts in .bashrc profile of local user, and they work properly. Currently on my 12.04 system but when ever I tried to used them in tmux, I always get the same response command not ...
1
vote
1answer
30 views

Cannot seem to get bash history along with others working

This is very similar to all the other questions out there but at the same time not. I am running Ubuntu 12.04.4 LTS (GNU/Linux 3.2.0-59-generic x86_64) to be precise. I successfully setup a new user ...
0
votes
1answer
135 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
1answer
2k views

How to reset .bashrc file which edited before to set PATH ANDROID sdk

bash: export: `/home/entw/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local /bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/bin': not a valid identifier bash: /home/entw/.bashrc: line 111: ...
3
votes
1answer
48 views

Why doesn't the xbacklight command work in rc.local?

When I execute the command xbacklight -set 10 in my terminal the brightness is set to 0.1 as it should. But when I use this command in my rc.local-file, then it is not executed upon start -- because ...
0
votes
2answers
41 views

Where can I put commands that I want to run for all interactive, non-login shells?

Normally, in bash, the answer would be ~/.bashrc or /etc/bash.bashrc. But unfortunately Ubuntu is sourcing these files from ~/.profile and /etc/profile respectively. So, where should I put such ...
0
votes
1answer
58 views

.bachrc $PATH doesn't find my python scripts

I've tried adding a path to my .bashrc file as follows export PATH=/beda/users/home/user252083/bin:$PATH and yes, I can then run the binary "bader", which is in the bin folder from anywhere. I also ...
3
votes
1answer
28 views

Keeping “info” lines visible after quitting “info”?

I have: export MANPAGER="/usr/bin/less -r -X -is" as the last line in ~/.bashrc. This allows me to keep most of a man page visible on screen after exiting man. I want to do the same when I view ...
5
votes
3answers
14k views

Specify JDK for tomcat7

I have installed tomcat7 (using apt-get install) and whenever I want to start tomcat7 it says : * no JDK found - please set JAVA_HOME I have set JAVA_HOME in my bash.bashrc and also in ~/.bashrc ...
11
votes
1answer
11k 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 ...
1
vote
1answer
30 views

The .bashrc file changed back after reload it

I changed the .bashrc file and run source ~/. bashrc it changes back to the old one. Why?
0
votes
2answers
68 views

Access and edit .bashrc via ssh on terminal

I try to access .bashrc by typing ~/.bashrc on my terminal. I am connecting to a remote server via ssh. I get an access denied message. I have no problems logging in, just the access denied message ...
3
votes
2answers
484 views

Install Elixir to System

How can I install Elixir on Ubuntu 13.04 so that I can easily use it from the command line and update it easily by cloning git. I have installed Erlang 16 by getting package from here Erlang ...
0
votes
1answer
51 views

Ubuntu terminal not exporting environment variable from .bashrc

i tried following(read from stack exchange): added "export OSTYPE=linux" in .profile but even then it shows "echo $OSTYPE" as linux-gnu
0
votes
3answers
57 views

Copy current terminal prompt to clipboard

Is there a way to copy the currently written content of the bash prompt? Say I wrote: ping www.google.com so that the lines in terminal looks like: petr@sova:~$ ping www.google.com and didn't ...
1
vote
1answer
27 views

“NS=: ” in terminal profile when source .bashrc

I don't know what have I done in my Ubuntu 12.04. But whenever I igarcia@dulx0004:~$ source .bashrc I get the following [NS=:]igarcia@dulx0004:~$ What is going on?
1
vote
1answer
99 views

ADT Bundle .bashrc $PATH not working

I Installed the ADT bundle, worked fine the first go, even from a Gnome custom launcher. Didn't test ADB or FASTBOOT from CL, subsequently neither nor ADT is working. echo "$PATH" /usr/local/sbin: ...
0
votes
2answers
41 views

Virtual console not reading ~/.bashrc

I'm using Ubuntu 13.04, and have set up some custom functions in ~/.bashrc. The custom functions work fine when I open a terminal within the GNOME environment. When I switch over to a virtual ...
0
votes
0answers
76 views

Specifying Python Distribution in Ubuntu 13.10 (for Continuum Anaconda Python)

I've been trying to install Python on my Ubuntu 13.10 VM. Ubuntu already comes with Python, and when I remove it with apt a lot of other apps get removed. I have installed Continuum's Anaconda ...
1
vote
2answers
115 views

No files in /etc/skel/ ; Can't restore .bashrc

I recently messed up my .bashrc file, which I mentioned in this question: Problem with installing Android developer files on Eclipse - messed up something with .bashrc, and I can't find a way to ...
2
votes
3answers
2k 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
vote
1answer
78 views

Problem with installing Android developer files on Eclipse - messed up something with .bashrc

I've been trying to install Android developer tools on Eclipse, and I followed the information in this video: http://www.youtube.com/watch?v=-qk9c-Ug2UI&list=PLQOohAn5nxx43fqFugU6dIwSQNbvXdgi5 . ...
1
vote
2answers
2k views

Gnome terminal is not running source .bashrc?

I have a clean installation of Ubuntu 12 and I installed bashmarks, a utility to have favorites folders on the terminal. One of the steps is to include source ~/.local/bin/bashmarks.sh at the end of ...
0
votes
1answer
221 views

bash: /home/gaja/.bashrc: line 4: syntax error near unexpected token `('

When I open the Terminal I got the following the errors. bash: /home/gaja/.bashrccu: No such file or directory bash: /home/gaja/.bashrc: line 4: syntax error near unexpected token (' bash: ...
1
vote
1answer
56 views

.bashrc not working after restart

I can't figure out what's wrong with my PC! I'm quite new to Ubuntu. I need to add android tools to the PATH variable so I add the following lines to .bashrc file: PATH=${PATH}:/home/user/Program\ ...
2
votes
0answers
203 views

Virtualenv permission denied

After a lot of struggle with virtualenv/virtualenvwrapper I decided to remove all virtualenvs and re-install the packages. root> su myuser myuser> sudo pip install virtualenv myuser> sudo ...
0
votes
2answers
103 views

Problems with sudo inside shell script

I want to make a shell script to run VI with sudo if I try to edit a file that I don't have write permissions and for that I created an alias alias vi=my_script.sh #!/bin/bash file=$1 ...
1
vote
0answers
45 views

Login errors in .bashrc in 13.04

I just upgraded to 13.04, and suddenly I get xsession errors in my .bashrc on login. There is nothing wrong with the .bashrc file--I can source it from a terminal login, and after I get into the ...
1
vote
2answers
194 views

My terminal shows only a blank screen--How can it?

I recently installed Ubuntu 13.10. in the process of editing bash.bashrc file something went wrong and all of a sudden all i'm getting when I open my terminal is a blank screen. No directory names or ...
1
vote
1answer
46 views

how to make ps1 display full path name

using ubuntu 12.04.3, i've modified my PS1 to [\u@\h ]\w$ which SHOULD display as follows: [user@host /home/user]$ but it doesn't it's still [user@host ~]$ this used to work. what changed?
3
votes
1answer
186 views

Is there a secure way to pass authentication parameters for proxy to applications?

I am behind a proxy server and need to specify authentication parameters to access the internet. For this, I have exported my username, password, host and port_no in my /home/$USER/.bashrc file and in ...
0
votes
0answers
45 views

help changing an environmental variable

I need a little help with this syntax. Do I use the quotes? Do I add these variables to .bashrc or bash? Are bash and .bashrc the same file? Where is the .bashrc file? What is the "." leading the ...