Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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, Sven Aug 23 '11 at 6:24

Questions on Server Fault are expected to relate to 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:… it's in /etc/skel/.bashrc in my particular case – Dmitri Aug 23 '11 at 5:45
up vote 16 down vote accepted
mv ~/.bashrc ~/.bashrc.messed
cp /etc/skel/.bashrc ~/.bashrc
share|improve this answer

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

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