Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 4 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`
fi

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

For a more general solution (or when you don't find it on opensource.apple.com), 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
add comment

Your Answer

 
discard

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.