Read and Edit Configuration Files
Change three settings in a configuration file without losing the original, without touching anything else in it, and with a diff that proves exactly what you did.
Skill labbeginner~25 minFree
What you'll do
- ✓Read files with cat, and long files with less, head and tail
- ✓Edit a file in vi (or nano) and change only the lines you meant to
- ✓Keep a before copy and produce a unified diff of the change
- ✓Understand that diff exiting 1 means the files differ, not that it failed
Lab outline
- 01Make the change
- 02Show your work
Before you start
- Create and Organize Files Safely
Every lab runs on a real machine of your own in the browser — no installs, nothing to clean up — and checks your work automatically as you go.