vi [file]Arguments explained
- Options adjust output or behavior.
- Arguments name the files, services, hosts, or values the command should work with.
Common examples
vi /etc/hostsOpens /etc/hosts in vi.
Esc, then :wqLeaves insert mode, writes the file, and quits.
| Field | Details |
|---|---|
| Command | vi |
| Category | Editors |
| Primary use | Opens the classic modal Unix editor. |
| Syntax | vi [file] |