vi Editor on Unix related Questions and Answers - Page 3

Question 21 : To split the screen into multiple windows, we can use ____ command.
1. :sp
2. :new
3. :n
4. :r
View Answer   Discuss with Members

Question 22 : :r !date inserts the output of date command in our file.
1. True
2. False
3.
4.
View Answer   Discuss with Members

Question 23 : We can move back to the previous file using ____ command.
1. new
2. :n
3. :rew
4. :prev
View Answer   Discuss with Members

Question 24 : When multiple filenames are used with vi, we can switch to next file using ___ command.
1. new
2. :n
3. :rew
4. :prev
View Answer   Discuss with Members

Question 25 : For returning back to the original file after switching we can use:
1. :e!
2. ctrl-^
3. :e#
4. ctrl-^ and :e#
View Answer   Discuss with Members

Question 26 : Which of the following command is used for switching files?
1. :e
2. e!
3. !e
4. !r
View Answer   Discuss with Members

Question 27 : Which of the following is not a valid operator-command combination?
1. 5dd
2. yy5
3. cc
4. yG
View Answer   Discuss with Members

Question 28 : To sort all lines from current cursor to end of line, ____ can be used.
1. sort .,$
2. sort !G
3. sort !,G
4. !Gsort
View Answer   Discuss with Members

Question 29 : The command c0 will change the text from current cursor to the end of line.
1. True
2. False
3.
4.
View Answer   Discuss with Members

Question 30 : To yank from current cursor up to first occurrence of string str in reverse direction, we can use:
1. y?str
2. y!str
3. yy str
4. yy ! str
View Answer   Discuss with Members


View 21 - 30 of 38 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter