bash shell

Do You Like to Perform Vi Style Editing in BASH Command Line ?

by Ramesh Natarajan on October 16, 2009

Question: I like Vi style of editing and I’m very comfortable with Vi commands. How do i use Vi style line editing in Unix command line?

Answer: Execute set -o vi at your Unix shell to enable Vi style editing.

(more…)

Unix Shell Tips: Change Login Shell From Bash to Others

by Ramesh Natarajan on October 9, 2009

Question: How do I find out what Unix shell I’m currently running? Can you also explain how can I change my Unix shell both temporarily and permanently? (For example, from bash to tsh).

Answer: You can achieve these using $0, exec, chsh -s. In this article, let us review how to do these in detail.

(more…)

Vi and Vim Editor: 3 Steps To Enable Thesaurus Option

by Ramesh Natarajan on December 16, 2008

Vi or Vim Thesaurus
Photo courtesy of dantesz

This is a guest post written by SathiyaMoorthy.

Enabling thesaurus option for vi / vim will help you to choose alternate words from thesaurus. For example, while typing “important”, you may prefer to use a different word than “important”.  Wouldn’t be nice if vi can give you few alternative words such as: “valuable” or “substantial” or “significant”?

This article explains how to use vi / vim effectively by enabling thesaurus option in three steps.
(more…)

[cd command hacks]This article is part of the ongoing Productivity Tips for Geeks series. cd is one of the most frequently used command during a Unix session. In this article, I’ve provided 6 cd command hacks, which will boost your productivity instantly and make it easier to navigate the directory structure from command line.
(more…)

Photo courtesy of f1r3storm85

In the previous article, we discussed about Linux environment variables PS[1-4] and PROMPT_COMMAND. If used effectively, PS1 can provide valuable information right on the command prompt.

In Tomb Raider, Angelina Jolie has all the gadgets and weapons at her finger tips to solve the mystery in style. While the gadget and style of Angelina Jolie is hard to match, at least let us try to make the good old Linux prompt very functional and stylish using the 10 examples provided in this article.
(more…)

15 Examples To Master Linux Command Line History

by Ramesh Natarajan on August 11, 2008

Bash Command Line ImageWhen you are using Linux command line frequently, using the history effectively can be a major productivity boost. In fact, once you have mastered the 15 examples that I’ve provided here, you’ll find using command line more enjoyable and fun.
(more…)