What is the difference between the i and a command of the vi editor?
A.
i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.
B.
i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.
C.
i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.
D.
i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.
The Answer Is:
B
This question includes an explanation.
Explanation:
The i and a commands are two of the most commonly used commands in the vi editor to enter the insert mode. The insert mode allows the user to insert text into the file. The difference between the i and a commands is that the i command inserts text before the current cursor position, while the a command inserts text after the cursor position. For example, if the cursor is on the letter “e” in the word “editor”, then pressing i will allow the user to insert text before the “e”, while pressing a will allow the user to insert text after the “e”. The user can exit the insert mode by pressing the Esc key, which will return to the command mode. References:
Basic vi commands (cheat sheet)
VI Editor with Commands in Linux/Unix Tutorial
How to use Vi editor in Linux (with examples)
101-500 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 60% Discount on All Products,
Use Coupon: "8w52ceb345"