0% found this document useful (0 votes)
28 views1 page

Essential vi Commands for Linux

The document provides an overview of the vi text editor, commonly used in Unix/Linux systems. It outlines the different modes of operation and lists essential commands for editing, saving, and navigating text. Key commands include entering insert mode, saving files, and performing search and replace functions.

Uploaded by

ashrufsd035
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views1 page

Essential vi Commands for Linux

The document provides an overview of the vi text editor, commonly used in Unix/Linux systems. It outlines the different modes of operation and lists essential commands for editing, saving, and navigating text. Key commands include entering insert mode, saving files, and performing search and replace functions.

Uploaded by

ashrufsd035
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

VI COMMAND NOTES

================

Purpose:
--------
vi is a text editor available on most Unix/Linux systems.

Modes:
------
1. Command mode (default)
2. Insert mode (press 'i')
3. Visual mode (press 'v')
4. Ex mode (press ':')

Common Commands:
----------------
i Enter insert mode
Esc Return to command mode
:w Save file
:q Quit
:wq Save and quit
:q! Quit without saving
dd Delete current line
yy Copy (yank) current line
p Paste copied line
u Undo last change
/word Search for 'word'
n Next search result
:%s/old/new/g Replace all 'old' with 'new'

You might also like