Create a backup copy while editing.
Section: sed Substitution
Edit in place with backup
bash
bash
sed -i.bak 's/debug/info/g' app.confExplanation
Creates `app.conf.bak` before replacing the original file.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing sed Substitution