Caffeinated Coder
Book an appointment
Lesson 06 · Getting around

Editing files in the terminal

A text editor never changes a file directly. It asks the kernel to read the file into memory, a copy called the buffer; you change the buffer with keys, and only saving writes it back to the disk. Follow one edit in nano, from nano notes.txt through Ctrl+O and Ctrl+X to cat, then meet vim's modes, :wq and :q!.

10 min10 steps5 questionsBeginner
Fig 6 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.