Vi Editor to Quit use Esc and Colon

Here are vi editor commands you can use to quit from Vi editor with or without saving your work. These are useful to use in day-to-day work.

w => To Save Your Work
q => To Quit
wq => To Save and Quit
q! => To quit without saving

vi editor also called Visual editor in terms of Unix or Linux or Ubuntu Operating systems. Since all are the same UNIX flavor, and UNIX is the mother of all these operating systems.

Recently many of my friends asked to share some daily use vi editor commands. I am sharing those for your quick reference.

6 Top vi Editor Commands

1. How to Edit a file?

vi filename

This is the first command to use for editing a file.

2. A command to Repeat Previous Command?

Use the UP arrow to repeat the previous command.

3. How to Insert data?

Use insert command to over-type data.

4. How to Save File?

Press Esc

5. How to Save and Quit (Exit)?

Press Esc

6 How to quit without Save?

Press Esc


Popular Posts

Hyperledger Fabric: 20 Real Interview Questions

7 AWS Interview Questions asked in Infosys, TCS

How to Fix Python Syntax Errors Quickly

Python 'getsizeof' Command the Real Purpose

Blue Prism complete tutorials download now

Python Dictionary Vs List With Examples

How to Use the ps Command in Linux

5 HBase Vs. RDBMS Top Functional Differences

The Growth of Machine Learning till TensorFlow