单选题Many people like the vi text editor but the default bash command line editor recognizes emacs keystrokes. What command entered into a bash initialization file will have bash recognize vi keystrokes after login?()A  history-pviB  alias emacs=viC  HISTCM

题目
单选题
Many people like the vi text editor but the default bash command line editor recognizes emacs keystrokes. What command entered into a bash initialization file will have bash recognize vi keystrokes after login?()
A

 history-pvi

B

 alias emacs=vi

C

 HISTCMD=vi

D

 set -o vi

E

 unset emacs

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You have a login-path named "adamlocal" that was created by using the mysql_config_editor command. You need to check what is defined for this login_path to ensure that it is correct for you deployment.You execute this command:$mysql_config_editor print –login-path=adamlocal What is the expected output of this command?()

A.The command prints all parameter for the login-path. The password is replaced with stars

B.The command prints the encrypted entry for the login-path. The is only possible to see if an entry exists

C.The command prints all parameters for the login-path. The password is shown only when you provide the –password option

D.The command prints all parameters for the login-path. The password is printed in plain tex


参考答案:A

第2题:

影响BASHShell启动的脚本包括()

  • A、/etc/profile
  • B、~/.bash_profile
  • C、~/.bash_login
  • D、~/.profile
  • E、~/.bash_rc”

正确答案:A,B,C,D,E

第3题:

在vi编辑器命令模式下,保存并退出编辑的命令是:『____』。(In the vi editor in command mode, the command of saving and exiting the editor of is『____』.)


参考答案::wq
:wq

第4题:

Which action changes the default editor for ALL users on the system from vi to edit of the following?()

  • A、Issue the command:  export EDITOR=/usr/bin/edit
  • B、Modify /.profile and change the EDITOR variable to /usr/bin/edit
  • C、Modify /etc/environment and add  EDITOR=/usr/bin/edit  export EDITOR
  • D、Modify /etc/security/defaults and change the EDITOR value to /usr/bin/edit

正确答案:C

第5题:

Which action change the default editor for ALL users on the system from vi to edit()

  • A、Issue the command: export EDITOR=/usr/bin/edit edit each user .profile to change the EDITOR value to /usr/bin/edit
  • B、Modify /.profile and change the EDITOR variable to /usr/bin/edit
  • C、Modify /etc/environment and add EDITOR=/usr/bin/edit export EDITOR
  • D、Modify /etc/security/defaults and change the EDITOR value to /usr/bin/edit

正确答案:C

第6题:

Which command enables a user to exit the vi editor, overwriting the existing file without prompting for confirmation?()

A. :w

B. :qw

C. :x!

D. :we!


参考答案:C

第7题:

默认情况下,下列文件中,()不会影响BASH的启动过程。

  • A、/etc/profile
  • B、~/.bash_profile
  • C、~/.bash_login
  • D、~/.bash_logout

正确答案:D

第8题:

定义bash环境的用户文件是()。

A.bash&.bashrc

B.bashrc&.bash_conf

C.bashrc&bash_profile

D..bashrc&.bash_profile


正确答案:D

第9题:

What command should a system administrator run after using an editor to create the /etc/tunables/nextboot file?()

  • A、ksh -n nextboot
  • B、tunsave -a -f nextboot
  • C、tuncheck -r -f nextboot
  • D、diff $(vmtune) /etc/tunables/nextboot

正确答案:C

第10题:

A user is unable to determine the default system texteditor. How can the local administrator assist the user by identifying the default text editor for the system?()

  • A、Login as the user and run 'echo $ENV'.
  • B、Login as root and run the 'env' command.
  • C、Login as root and 'cat /etc/environment'.
  • D、Login as the user and run the 'env' command.

正确答案:B

更多相关问题