Google News
logo
Unix - Quiz(MCQ)
How can we escape to the UNIX shell without quitting vi editor?
A)
using ctrl-D
B)
using ctrl-Z
C)
using ‘:sh’ command and using ctrl-Z
D)
using ‘:sh’ command

Correct Answer :   using ‘:sh’ command and using ctrl-Z


Explanation : We can escape to the shell without quitting the editor using ‘:sh’ command or ctrl-Z. Sometimes it is necessary to return to shell prompt to execute a UNIX command or compile our program. For this purpose, we use these commands.

Advertisement