Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GAQM Exam LCP-001 Topic 5 Question 80 Discussion

Actual exam question for GAQM's LCP-001 exam
Question #: 80
Topic #: 5
[All LCP-001 Questions]

Many people like the vi text editor but the default bash command line editor recognizes emacs keystrokes. What command entered into abash initialization file will have bash recognize vi keystrokes after login?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Maryann
1 months ago
I'm more of a nano guy myself, but D) set -o vi has got to be the way to go if you want to use vi in the bash shell.
upvoted 0 times
...
Dannette
1 months ago
Haha, alias emacs=vi? That's like trying to put a square peg in a round hole. Nice try, but B) isn't the right answer.
upvoted 0 times
Ivette
9 days ago
I agree, setting vi mode with D) is the way to go.
upvoted 0 times
...
Thomasena
10 days ago
Yeah, B) definitely doesn't make sense. A) or D) seem like better options.
upvoted 0 times
...
Wayne
16 days ago
E) unset emacs
upvoted 0 times
...
Serina
1 months ago
D) set -o vi
upvoted 0 times
...
Lawrence
1 months ago
A) history -p vi
upvoted 0 times
...
...
Albert
1 months ago
I don't know, E) unset emacs sounds like it might work too. Get rid of that pesky emacs and bring on the vi!
upvoted 0 times
...
Stephanie
2 months ago
D) set -o vi seems like the obvious choice here. It's the command to set the bash shell to use vi-style key bindings.
upvoted 0 times
Alfreda
30 days ago
Me too, it's just more intuitive for me.
upvoted 0 times
...
Torie
1 months ago
I always prefer using vi keystrokes over emacs.
upvoted 0 times
...
Kristin
1 months ago
That makes sense, it sets the bash shell to use vi-style key bindings.
upvoted 0 times
...
Queen
1 months ago
I think the answer is D) set -o vi.
upvoted 0 times
...
...
Madalyn
2 months ago
I'm not sure, but I think option B) alias emacs=vi could also work.
upvoted 0 times
...
Antonio
2 months ago
I agree with Anglea. Setting vi mode with set -o vi makes sense.
upvoted 0 times
...
Anglea
2 months ago
I think the answer is D) set -o vi.
upvoted 0 times
...

Save Cancel