Match the following commands with their actions in the execute mode of the vi editor…

Match the following commands with their actions in the execute mode of the vi editor:
1) :e! a) save and exit
2) :X b) exit even if changes have not been saved
3) :wq c) save and exit even if the file is read only
4) :w! d) forget changes since last write
5) :q! e) save the file even if it is marked read only
6) :wq! f) encrypt the file along with a password

Match the following commands with their actions in the execute mode of the vi editor:
1) :e! a) save and exit
2) :X b) exit even if changes have not been saved
3) :wq c) save and exit even if the file is read only
4) :w! d) forget changes since last write
5) :q! e) save the file even if it is marked read only
6) :wq! f) encrypt the file along with a password

A.
1-d, 2-f. 3-c, 4-b, 5-e, 6-a

B.
1-f, 2-b, 3-a, 4-e, 5-d, 6-c

C.
1-c, 2-b, 3-a, 4-f, 5-d, 6-e

D.
1-d, 2-f, 3-a, 4-e, 5-b, 6-c



Leave a Reply 0

Your email address will not be published. Required fields are marked *