vim

Vi IMproved text editor

medium risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
What it does

Modal text editor. Esc to command mode, :wq to save and quit, :q! to quit without saving.

Common flags
FlagMeaning
-ROpen read-only
-dDiff mode
-nNo swap file
-u NONEStart with no config
Examples
vim /etc/hostsEdit a file (use sudoedit for root files) · explain & risk-check →
vim -d a bDiff two files · explain & risk-check →
Related
nano sed sudo
Open the full explainer →More in Text Processing

Reference text is hand-written and may be incomplete — check man vim for your version. Test destructive commands on a non-production system first.