Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation Exam LFCS Topic 3 Question 96 Discussion

Actual exam question for Linux Foundation's LFCS exam
Question #: 96
Topic #: 3
[All LFCS Questions]

What is the difference between the i and a commands of the vi editor?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Fausto
18 days ago
The difference between i and a? One's for inserting, the other's for appending. Simple as that! Unless you're a vi wizard, then it's all black magic as far as I'm concerned.
upvoted 0 times
...
Belen
20 days ago
Wait, vi has modes? I just mash the keyboard and hope something useful happens. Maybe I should have paid more attention during that Linux class.
upvoted 0 times
...
Dulce
21 days ago
Hmm, I thought i was for interrupting the current operation and a was for aborting the whole thing. Guess I need to brush up on my vi basics.
upvoted 0 times
...
Milly
24 days ago
I'm pretty sure the difference is that i switches modes, while a keeps the same mode. But I could be wrong, vi commands can be a bit tricky to remember sometimes.
upvoted 0 times
Mohammad
20 hours ago
Yes, that's correct. i is for interactive mode and a is for automatic mode.
upvoted 0 times
...
Sang
8 days ago
I think you're right, i requires switching modes while a doesn't.
upvoted 0 times
...
...
Twanna
2 months ago
The correct answer is B) i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor. This makes the most sense in the context of the vi editor commands.
upvoted 0 times
Bulah
22 days ago
Yeah, i inserts before the cursor and a inserts after. It's important to remember that difference.
upvoted 0 times
...
Paris
29 days ago
I always get confused between i and a commands in vi editor.
upvoted 0 times
...
...
Elza
2 months ago
I agree with both of you. The options provided make it clear.
upvoted 0 times
...
Jeannetta
2 months ago
I believe a inserts text after the cursor position.
upvoted 0 times
...
Vicente
2 months ago
I think the difference is that i requires explicit mode switching.
upvoted 0 times
...

Save Cancel