LINUX Assume you are using the vi editor and you are in insert mode, meaning you
ID: 3888445 • Letter: L
Question
LINUX
Assume you are using the vi editor and you are in insert mode, meaning you're actively editing the text in a document. How do you save your work and exit the editor?
Select one:
a. ESC
b. CTRL + S
c. ESC -> q! -> Enter/Return
d. File -> Save
e. Esc -> :wq -> Enter/Return
What command would you use to print out environment variables and their associated values?
Select one:
a. printenv USER
b. printenv root
c. printenv | less
d. printenv all
When using vi, what key do you type in normal or command mode to go to the last line in a file?
Select one:
a. Z
b. G
c. a
d. w
e. i
Q Why would you use the alias command?
Select one:
a. to create aliases for the environment's variables
b. to create a simple, short command for otherwise complicated commands
c. to create an alias for the user's account
d. to do masterful hacking without rousing suspicion
vi can open multiple files at once.
Select one:
True
False
Many commands in vi can be prefixed with a number which specifies which line the command is to be carried out on.
Select one:
True
False
Explanation / Answer
** Assume you are using the vi editor and you are in insert mode, meaning you're actively editing the text in a document. How do you save your work and exit the editor?
Answer: e. Esc -> :wq -> Enter/Return
** What command would you use to print out environment variables and their associated values?
Answer: d. printenv all
** When using vi, what key do you type in normal or command mode to go to the last line in a file?
Answer: b. G
** Why would you use the alias command?
Answer: b. to create a simple, short command for otherwise complicated commands
** vi can open multiple files at once.
Answer: False
**Many commands in vi can be prefixed with a number which specifies which line the command is to be carried out on.
Answer: True
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.