≡ Menu

bash

Vi and Vim Editor: 3 Steps To Enable Thesaurus Option

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 [...]

{ 13 comments }

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. If you are [...]

{ 30 comments }

This article will explain the sequence in which the following files are executed: /etc/profile ~/.bash_profile ~/.bashrc ~/.bash_login ~/.profile ~/.bash_logout Following pseudo code explains the sequence of execution of these files. execute /etc/profile IF ~/.bash_profile exists THEN execute ~/.bash_profile ELSE IF ~/.bash_login exist THEN execute ~/.bash_login ELSE IF ~/.profile exist THEN execute ~/.profile END IF END [...]

{ 12 comments }

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 [...]

{ 56 comments }

Your interaction with Linux Bash shell will become very pleasant, if you use PS1, PS2, PS3, PS4, and PROMPT_COMMAND effectively. PS stands for prompt statement. This article will give you a jumpstart on the Linux command prompt environment variables using simple examples. The default interactive prompt on your Linux can be modified as shown below [...]

{ 5 comments }

15 Examples To Master Linux Command Line History

When 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. Typically when you type history from command line, it displays the command# and the command. [...]

{ 131 comments }