what does this command mean: "bash -o vi"

today I saw my dba ran this command : "bash -o vi"

what does it mean?
Jason YuAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Gerwin Jansen, EE MVEConnect With a Mentor Topic Advisor Commented:
bash is a shell, bash command starts a new shell

-o is an option for bash

vi is the option

So the line starts a new bash shell with the option vi set - this means that history end editing commands on the bash command line are done using the vi style.

So j and k are used to walk through commands in the history of the shell (k for up and j for down).

If you were to start a shell like this:

bash -o emacs

then the arrow keys would be used to browse through history.
0
 
Jason YuAuthor Commented:
Got it, thank you very much.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.