How can we escape to the UNIX shell without quitting vi editor?
23 views
- using ‘:sh’ command and using ctrl-Z (Correct Answer)
- using ‘:sh’ command
- using ctrl-Z
- using ctrl-D
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.