nerdexam
CompTIA

LX0-101 · Question #286

Many people like the vi text editor but the default bash command line editor recognizes emacs keystrokes. Which of the following commands, entered into a bash initialization file, will have bash…

The correct answer is D. set -o vi. See the full explanation below for the reasoning.

Question

Many people like the vi text editor but the default bash command line editor recognizes emacs keystrokes. Which of the following commands, entered into a bash initialization file, will have bash recognize vi keystrokes after login?

Options

  • Ahistory -p vi
  • Balias emacs=vi
  • CHISTCMD=vi
  • Dset -o vi
  • Eunset emacs

How the community answered

(25 responses)
  • A
    12% (3)
  • B
    4% (1)
  • C
    8% (2)
  • D
    72% (18)
  • E
    4% (1)

Community Discussion

No community discussion yet for this question.

Full LX0-101 Practice