LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-11-2010, 03:32 AM   #1
anushya.k.kutty
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Rep: Reputation: 0
Unhappy 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??
 
Old 04-11-2010, 03:39 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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
 
Old 04-11-2010, 03:52 AM   #3
anushya.k.kutty
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Talking

Thanks a lottt!!
 
Old 04-11-2010, 03:54 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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
 
Old 04-11-2010, 05:54 AM   #5
anushya.k.kutty
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Original Poster
Rep: Reputation: 0
One more question..Is bash.bashrc file found in /etc same as .bashrc file??
 
Old 04-11-2010, 06:23 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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
 
Old 04-12-2010, 04:53 AM   #7
anushya.k.kutty
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Talking

Ur Reply was of great help to me.....
 
Old 04-12-2010, 02:47 PM   #8
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

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

Kind regards,

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
i accidently deleted 'ldconfig'!!! ethicalstar Linux - Software 3 05-31-2008 12:15 PM
Emergency : accidently deleted my user directory Vassos Linux - Newbie 4 11-20-2007 06:33 PM
i deleted my .bashrc file koolhead17 SUSE / openSUSE 3 06-23-2006 02:39 AM
accidently deleted my ~/.Xauthority behmjoe Linux - Software 4 12-14-2005 11:53 PM
Help: Accidently deleted file patske Linux - Newbie 5 02-17-2004 10:34 AM


All times are GMT -5. The time now is 10:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration