Chapter 8 of 10All chapters
Chapter 8 of 10
Editing files
nano, vim and configuration.
Pick one and learn it
nano is the easy one: the shortcuts are printed at the bottom. vim is faster once learned and is present on every system, which is why the escape and colon q dance is worth memorising.
- In vim, i starts typing, Escape stops, :wq saves and quits, :q! leaves without saving.
- Always copy a configuration file before editing it.
Config lives in text
Almost all Linux configuration is plain text under /etc, which is why the same editing skills apply everywhere and why version control works on servers.