where is ~/.bashrc ?

Questions about applications and software
Forum rules
Before you post please read how to get help

where is ~/.bashrc ?

Postby Verlager on Sat Jun 14, 2008 10:42 pm

I was looking to add a location to my environment path but I don't have a file .bashrc

Why is that?
Verlager
Level 1
Level 1
 
Posts: 49
Joined: Sun Jul 01, 2007 1:23 pm

Linux Mint is funded by ads and donations.
 

Re: where is ~/.bashrc ?

Postby Fred on Sun Jun 15, 2008 1:51 am

Verlager,

.bashrc is a hidden folder in your /home folder. You have to make hidden folders/files visible before you can see it.

You can open it in an editor with:

gedit .bashrc

or

kate .bashrc

depending on whether you are using KDE or Gnome.

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: where is ~/.bashrc ?

Postby Boo on Sun Jun 15, 2008 2:44 am

the answer you are looking for is it was removed from elyssa. (gone from /etc/skel/)
you can add your own though.
the system wide /etc/bash.bashrc was modified quite a bit and the /etc/skel/.bashrc would add no value or revert some of the changes. so it was removed, hence no ~/.bashrc

Boo
Image
Now where was i going? Oh yes, crazy!
User avatar
Boo
Level 8
Level 8
 
Posts: 2364
Joined: Mon Mar 26, 2007 7:48 am

Re: where is ~/.bashrc ?

Postby Catze on Tue Jun 24, 2008 8:47 pm

Can one add a ~/.bashrc with a few additions?

I would like to add "code" like

Code: Select all
alias l='ls -lha'


and so on in that file, and I don't want it to be added to /etc/bash.bashrc
post() while post();
User avatar
Catze
Level 1
Level 1
 
Posts: 31
Joined: Sun Dec 09, 2007 4:32 pm
Location: Würzburg, Germany

Re: where is ~/.bashrc ?

Postby Boo on Thu Jun 26, 2008 11:16 pm

yes go for it, i do.

Boo
Image
Now where was i going? Oh yes, crazy!
User avatar
Boo
Level 8
Level 8
 
Posts: 2364
Joined: Mon Mar 26, 2007 7:48 am

Re: where is ~/.bashrc ?

Postby Sakonim on Fri Jun 27, 2008 5:45 am

There is a .bashrc_vanilla file in you home folder. You can rename that to ".bashrc" and then put your changes in there as well. That seems to have worked for me.
Image

At any street corner the feeling of absurdity can strike any man in the face. - Albert Camus
User avatar
Sakonim
Level 2
Level 2
 
Posts: 94
Joined: Tue Apr 15, 2008 2:25 pm


Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 16 guests