≡ Menu


A parameter is an entity that stores values. It can be a name, a number or some special characters. A variable is a parameter denoted by a name. Some variables are set for you already, and most of these cannot have values assigned to them. These variables contain useful information, which can be used by [...]


This article is part of our on-going bash tutorial series. Like any other programming languages, Bash also provides variables. Bash variables provide temporary storage for information that will be needed during the lifespan of the program. Syntax: VARNAME=VALUE Note: There should not be any space around “=” sign in variable assignment. When you use VAR=VALUE, [...]


Bash shell functions are a way to group several UNIX / Linux commands for later execution using a single name for the group. Bash shell function can be executed just like a regular Unix command. Shell functions are executed in the current shell context without creating any new process to interpret them. Both bash aliases [...]


While most of us cannot kick someone ass like Jennifer Garner in Alias, we can at least try to use the Linux alias command effectively. An alias command is simple string substitution of one text for another, when it is used as the first word of a simple command. In this article let us review [...]


In our bash introduction article, we learned that a shell-script file contains list of commands to be executed by the shell interpreter. In this article let us review about shell commands and its internals. A command is a sequence of words. The first word indicates the command to be executed and remaining words are passed [...]


Similar to our on-going Unix Sed and Unix Awk series, we will be posting several articles on Bash scripting, which will cover all the bash scripting techniques with practical examples. Shell is a program, which interprets user commands. The commands are either directly entered by the user or read from a file called the shell [...]


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

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. Enable Vi Style Editing in BASH $ set -o vi By default the command line [...]

{ 1 comment }

Unix Shell Tips: Change Login Shell From Bash to Others

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