Home » LPI » 117-201 » What would be the appropriate way to do this?
After experimenting with vi as your command line editor, you decide that you want to have vi your default editor every time you log in. What would be the appropriate way to do this?
A. Change the /etc/inputrc file
B. Change the /etc/profile file
C. Change the ~/.inputrc file
D. Change the ~/.profile file
Correct Answer: C
Explanation/Reference:
Explanation: The .inputrc file is used to control your shell. You can set keystrokes to perform specified functions with this file. Another setting that can be changed is the command line editor. If you want this setting to only affect you, you edit the file in your home directory (~/ signifies your home directory).
Reference: http://ctdp.tripod.com/os/linux/howlinuxworks/linux_hlkeyprogs.html
Incorrect Answers
A:The settings in the /etc/inputrc file would affect all users. If you want this setting to only affect you, you edit the file in your home directory.
B:The default editor is not set in this file.
D:The default editor is not set in this file.
Download Printable PDF. VALID exam to help you PASS.
|
|