Interview Questions

You would like to temporarily change your command line editor to be vi. What command should you type to change it?

Operating System Interview Questions and Answers


(Continued from previous question...)

You would like to temporarily change your command line editor to be vi. What command should you type to change it?

set -o vi

The set command is used to assign environment variables. In this case, you are instructing your shell to assign vi as your command line editor. However, once you log off and log back in you will return to the previously defined command line editor.

(Continued on next question...)

Other Interview Questions