LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 02: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, 02: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: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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, 02: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, 02: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: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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, 04: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, 05: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: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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, 03: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, 01: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: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

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

Kind regards,

Eric
 
  


Reply



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 11:15 AM
Emergency : accidently deleted my user directory Vassos Linux - Newbie 4 11-20-2007 05:33 PM
i deleted my .bashrc file koolhead17 SUSE / openSUSE 3 06-23-2006 01:39 AM
accidently deleted my ~/.Xauthority behmjoe Linux - Software 4 12-14-2005 10:53 PM
Help: Accidently deleted file patske Linux - Newbie 5 02-17-2004 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:11 PM.

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
Open Source Consulting | Domain Registration