Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2015-01-25
2
Medium Priority
?
329 Views
Last Modified: 2015-02-04
today I saw my dba ran this command : "bash -o vi"

what does it mean?
0
Comment
Question by:Jason Yu
2 Comments
 
LVL 38

Accepted Solution

by:
Gerwin Jansen, EE MVE earned 2000 total points
ID: 40569658
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
 

Author Comment

by:Jason Yu
ID: 40570822
Got it, thank you very much.
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Fine Tune your automatic Updates for Ubuntu / Debian
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month7 days, 23 hours left to enroll

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question