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

learn more… | top users | synonyms

5
votes
1answer
746 views

Source/Dot operator error on login. Possibly caused by bad byobu uninstall

I am getting an error message every time I ssh into my box or run sudo -i. It looks like this for login: login as: person chands@ubuntu-server's password: -bash: .: filename argument required .: ...
4
votes
2answers
727 views

Store frequently used terminal commands in a file

Okay, so I want add a command to my Desktop (Or any convenient location), and whenever I run it I want it to clone the HTML5 boilerplate. $ git clone git://github.com/paulirish/html5-boilerplate.git ...
2
votes
3answers
3k 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.
3
votes
1answer
4k 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 ...
0
votes
1answer
974 views

Screwed up my .bashrc file

I was trying to add the source command at the end so that I dont have to enter it in the command line each session, the addition I made was, in the end of the file, # Load Root Files source ...
0
votes
1answer
1k views

Setting gnome-terminal window size from within ~/.bashrc

It know that it is possible to pass the --geometry=WxH arguments when using launcher, but how to set this option with the ~/.bashrc file.
6
votes
1answer
6k views

How is ~/bin added to my path?

I have not added ~/bin to any of my .bash* files. However, $PATH does list that directory. The reason I am asking this in the Ubuntu specific StackExchange is because, well, I have exactly the same ...
4
votes
1answer
4k views

What could be a reason for `.bash_profile` and `.bashrc` not to execute the exports?

the CUDA installation tutorial tells me to add the following two lines to my .bash_profile. export PATH=/usr/local/cuda/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH But ...
7
votes
2answers
6k views

What if I don't have a bashrc?

Will I be able to login? What havoc will it cause, if any? How will it mess up m terminal? There are login and non-login terminals too. How will it affect those?
0
votes
2answers
933 views

Shell tweak to show current path in addition

I'm using ubuntu 10.10 and now I got in the shell something like that: machine1user@mylinux:~: how can i change it to machine1user@mylinux:/my/current/path :~: ?
5
votes
2answers
11k views

bash: [: too many arguments?

I'm trying to create a directory and cd into it: In ~/.bashrc: function abc() { appname=$1 appdir="$HOME/code/$appname" if [ mkdir $appdir -a cd $appdir ]; then echo Success else ...
2
votes
1answer
142 views

~ no longer takes me to my home directory

I'm a newcomer to Ubuntu (and linux in general) and since I have a machine spare, I have Ubuntu Server (terminal only) installed on one of my machines. I've recently started playing around with my ...
1
vote
1answer
913 views

Executing a Super-user command through .bashrc

Is it possible to execute a super-user command in .bashrc? And if so, how? It would save me having to execute "sudo /opt/lampp/lampp start" on each startup. I've considered using the LAMP stack from ...
2
votes
1answer
6k 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