I have been trying a lot of different things out on my Pi. Some of the Expansion cards asked me to put # in front of certain lines.

  • As it stands this question is too vague. Be more specific.
    – Milliways
    Dec 28 '16 at 0:16
  • 1
    Welcome to Raspberry Pi! Please take the tour and visit the helpcenter to see how things work here. Be more specific about which config files you're referring to. If some documentation asks you to modify specific files and certain lines then it should point out which files and which lines. To backup config files before modifications is usually left to you while you of course could always find the original files in the distribution you used to install your system.
    – Ghanima
    Dec 28 '16 at 8:58

As the sole user of your Pi and thus as acting system administrator the task of backing up config files before editing them is your responsibility. They're usually not automatically saved to another location. If you edit them you better make sure you have a working backup beforehand. That being said it is of course possible to obtain the files you're looking for:

  1. If you have installed your Raspbian from a downloaded image (e.g. as described here) and have that image still available you can mount the image and search the files you're interested in. This question: How can I mount a Raspberry Pi Linux distro image? outlines what needs to be done to mount the image. Note that config files may be updated by the package manager. So if you have an old image and an updated system there is the remote but existant chance that the config files are different.

  2. It should also be possible to retrieve any files from Raspbian's online repository.

  • When you've mounted that image, you could also use diff to compare it to your current one…
    – wb9688
    Dec 28 '16 at 15:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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