LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Deleted my .bashrc file accidently. I am a Debian user. What should i do? (https://www.linuxquestions.org/questions/linux-newbie-8/deleted-my-bashrc-file-accidently-i-am-a-debian-user-what-should-i-do-801315/)

anushya.k.kutty 04-11-2010 03:32 AM

Deleted my .bashrc file accidently. I am a Debian user. What should i do?
 
I accidently deleted my .bashrc file. I am a Debian user.Wat should i do??

EricTRA 04-11-2010 03:39 AM

Hello and welcome to LinuxQuestions,

If I recall correctly there should be a .bashrc file in /etc or in /etc/skel, so you can copy that to your home directory like this:
Code:

cp /etc/.bashrc ~/  (or from /etc/skel/.bashrc)
Of course that's the default bashrc, you have lost whatever is in your 'deleted' version of the file. If you have a backup of your system (recent) you can restore it from there.

Kind regards,

Eric

anushya.k.kutty 04-11-2010 03:52 AM

Thanks a lottt!!

EricTRA 04-11-2010 03:54 AM

Hi,

You're welcome. If you consider your problem solved then you can mark it as such using the Thread Tools. Have fun with Linux.

Kind regards,

Eric

anushya.k.kutty 04-11-2010 05:54 AM

One more question..Is bash.bashrc file found in /etc same as .bashrc file??

EricTRA 04-11-2010 06:23 AM

Hello,

No, they're not the same. If you look at the contents of both you can see the differences:
Code:

cat /etc/bash.bashrc
Basically, the /etc/bash.bashrc file is used for system-wide (applies to all users) interactive bash shells. The /etc/skel/.bashrc is a 'skeleton' file that gets copied to the home directory of a user upon creation.

Kind regards,

Eric

anushya.k.kutty 04-12-2010 04:53 AM

Ur Reply was of great help to me.....

EricTRA 04-12-2010 02:47 PM

Hello,

You're welcome. Looking forward to your participation here at LQ. Have fun with Linux.

Kind regards,

Eric


All times are GMT -5. The time now is 05:47 PM.