Unix_and_Linux_Introduction
Unix_and_Linux_Introduction
Introduction to VI Editor
The VI editor is a powerful text editor in UNIX and Linux environments.
Basic usage includes:
1. Opening VI:
vi file_name
2. Modes in VI:
Normal Mode: The default mode for navigation and operations.
Insert Mode: For inserting text. Enter this mode by pressing i.
Command Mode: For executing commands. Access by pressing : in
normal mode.
3. Basic Commands:
Insert Text: Press i to enter insert mode.
Save and Quit: Type :wq in command mode.
Quit Without Saving: Type :q! in command mode.
Delete Line: Press dd in normal mode.
Undo: Press u in normal mode.
These components provide a foundational understanding of UNIX, Linux,
and their tools and philosophies.