Interviewer And Interviewee Guide

Professional Linux OS Editors Interview Questions & Answers:

1. Which vi editor command copies the current line of the file?
a) yy
b) yw
c) yc
d) none of the mentioned

a) yy
Explanation:
The command 'p' puts the copied text after the cursor.

2. Which command is used to close the vi editor?
a) q
b) wq
c) both (a) and (b)
d) none of the mentioned

c) both (a) and (b)
Explanation:
The command 'q' just closes the file and 'wq' saves and closes the file.

Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.