Simple terminal text editor
medium risk
Beginner-friendly editor. Ctrl+O writes, Ctrl+X exits, Ctrl+W searches.
| Flag | Meaning |
|---|---|
-w | Disable line wrapping (important for config files) |
-B | Backup existing file |
-l | Show line numbers |
nano -w /etc/fstabEdit without wrapping lines · explain & risk-check →sudoedit /etc/hostsEdit a root-owned file safely · explain & risk-check →Reference text is hand-written and may be incomplete — check man nano for your version. Test destructive commands on a non-production system first.