Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I messed up my .bashrc file. How do I get to the default one that was initially created with my home directory?

share|improve this question

closed as off topic by womble, Zoredache, andol, Iain, SvW Aug 23 '11 at 6:24

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Whoops. Shoulda done some more research. Here is the answer for posterity: linuxquestions.org/questions/linux-newbie-8/… it's in /etc/skel/.bashrc in my particular case –  Dmitri Aug 23 '11 at 5:45
add comment

2 Answers

up vote 8 down vote accepted
mv ~/.bashrc ~/.bashrc.messed
cp /etc/skel/.bashrc ~/.bashrc
share|improve this answer
add comment

I do not remember the exact commands, but there is a way to see which files do belong to a package, like bash....

Look for bashrc.sample or bashrc.example or bashrc.default and just copy it to your home directory..

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.