Shell Scripting

Understanding Positional Parameters (Passing Parameters/Arguments to Shell script)

The execution of scripts is made versatile by the ability to run a script based on arguments supplied on the…

Bash if loop examples (if then fi, if then elif fi, if then else fi)

The if Statement The if statement allows you to specify courses of action to be taken in a shell script,…

What is the purpose of .bash_profile file under User Home Directory In Linux

What is the purpose of ~/.bash_profile file Apart from having a home directory to create and store files, users need…

Understanding Variables in Bash Shell Under Linux

What are Variables? A variable is a temporary storage area in memory that is either set by the user, shell,…

How to use command redirection under Linux

Shell metacharacters Shell metacharacters are specific characters, generally symbols, that have special meaning within the shell. The metacharacters supported in…

How to use shell expansions for generating shell tokens under Linux

Shell Expansions While working in a shell, sets or ranges of information are often repeated. Shell expansion helps generate a…

How to use command line shell functions in Linux

Functions, a powerful feature of shell programming, is a group of commands organized by common functionality. These easy-to-manage units, when…

How to use shell aliases in Linux

What is an alias An alias is a shorthand shell notation that allows you to customize and abbreviate commands. Aliases…

Examples of creating command alias in different shells

Alias for commands lets you define your own short easy to remember command shortcuts. Below are some examples of defining…

Introduction to sed (Stream Editor) : Useful sed Command Examples

Introduction to the sed Editor The term sed stands for stream editor. Sed can take its input from standard in,…