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
2 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
Shawana
4 days ago
I'm not a fan of vi, but set -o vi is the command you need for bash.
upvoted 0 times
...
Joanna
5 days ago
I always use vi, so set -o vi is definitely the right choice.
upvoted 0 times
...
Lawrence
10 days ago
I prefer nano too, but set -o vi is the way to go for vi keystrokes in bash.
upvoted 0 times
...
...
Dannette
2 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
20 days ago
I agree, setting vi mode with D) is the way to go.
upvoted 0 times
...
Thomasena
21 days ago
Yeah, B) definitely doesn't make sense. A) or D) seem like better options.
upvoted 0 times
...
Wayne
27 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
2 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
1 months 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
2 months ago
That makes sense, it sets the bash shell to use vi-style key bindings.
upvoted 0 times
...
Queen
2 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
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77