Solved

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

Posted on 2015-01-25
2
290 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 38

Accepted Solution

by:
Gerwin Jansen, EE MVE earned 500 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AWS EC2 HTTP & HTTPS 2 120
Can't connect to FTP 18 163
Cron job never runs on vCenter 6.5 appliance 7 35
Issue when using 'yum update' 4 25
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

710 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