What is the default text editor in UNIX?
a) emacs
b) nano
c) vi
d) gedit
Answer:
c) vi
Explanation:
The vi
editor is the default text editor in many UNIX systems. It is a powerful text editor that provides advanced editing features, although it has a steep learning curve compared to simpler editors like nano
.
In vi
, users can enter different modes such as command mode and insert mode. In command mode, you can navigate the file and issue commands, while in insert mode, you can input text. Commands like :wq
are used to save and exit the editor.
Learning to use vi
is an important skill for UNIX users. It is available on nearly every UNIX system, making it a reliable choice for editing configuration files or writing scripts directly from the command line.