Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Some idiot altered my /etc/profile file, and I want to revert it to the system default, because I have now realized that I would rather override whatever needs to be overriden using files in my home directory. Can you guys point me to a way to reset the file contents to exactly how these were right after installation, or quote the original contents so I can paste these in my file? Thank you.

share|improve this question
up vote 6 down vote accepted

Contents on OS X 10.8.3 from Apple's Open Source web site:

# System-wide .profile for sh(1)

if [ -x /usr/libexec/path_helper ]; then
        eval `/usr/libexec/path_helper -s`

if [ "${BASH-no}" != "no" ]; then
        [ -r /etc/bashrc ] && . /etc/bashrc

For a more general solution (or when you don't find it on, you can use Pacifist: It allows you to open the OS installer package on the OS X 10.8 DVD or disk image (InstallESD.dmg, part of the App Store download) and reinstall single files from these packages.

Pacifist Screenshot

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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