MathsGee is free of annoying ads. We want to keep it like this. You can help with your DONATION

0 like 0 dislike
9 views
Many basic maintenance tasks require you to edit config files. Explain ways to undo the changes you make.
| 9 views

• manually backup of a file before editing (with brace expansion like this: cp filename{,.orig})
• manual copy of the directory structure where file is stored (e.g. cprsync or tar)
• the best solution is to use git (or any other version control) to keep track of configuration files (e.g. etckeeper for /etc directory)