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

  1. 01Make the change
  2. 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.

← All Linux System Administration labs

Your first machine is
8 seconds away.

Learn by doing on real machines — and give every AI agent one of its own.

Free forever · No credit card · Cancel anytime

Read and Edit Configuration Files — Linux lab | Kube Labs