Category: Shell Scripting

Learn and use fork(), vfork(), wait() and exec() system calls across Linux Systems 0

Learn and use fork(), vfork(), wait() and exec() system calls across Linux Systems

It is found that in any Linux/Unix based Operating Systems it is good to understand fork and vfork system calls, how they behave, how we can use them and differences between them. Along with...

How to define and use functions in Linux Shell Script 0

How to define and use functions in Linux Shell Script

Function is a reusable block of code. Often we put repeated code in a function and call that function from various places. Library is a collection of functions. We can define commonly used function...

How to Compare Numbers, Strings and Files in Bash Shell Script 0

How to Compare Numbers, Strings and Files in Bash Shell Script

In this tutorial on Bash scripting, we are going to learn to do comparisons. We will be discussing numeric, strings & file comparisons in a Bash script. Comparisons in a script are very useful...

Command Line Arguments in Linux Shell Scripting 0

Command Line Arguments in Linux Shell Scripting

Overview : Command line arguments (also known as positional parameters) are the arguments specified at the command prompt with a command or script to be executed. The locations at the command prompt of the...

Debugging Shell Scripts in Linux 0

Debugging Shell Scripts in Linux

In most of the programming languages debugger tool is available for debugging. A debugger is a tool that can run a program or script that enables you to examine the internals of the script...

25 Linux Shell Scripting interview Questions and Answers 0

25 Linux Shell Scripting interview Questions and Answers

Q:1 What is Shell Script and why it is required ? Ans: A Shell Script is a text file that contains one or more commands. As a system administrator we often need to issue...

Working with Standard Input, Output and Errors in Linux 0

Working with Standard Input, Output and Errors in Linux

Every process in Linux is provided with three open files( usually called file descriptor). These files are the standard input, output and error files. By default : Standard Input is the keyboard, abstracted as...

How to check Conditions with if statement in shell Scripting 0

How to check Conditions with if statement in shell Scripting

In Bourne Shell if statement checks whether a condition is true or not. If so , the shell executes the block of code associated with the if statement. If the statement is not true...

How to use variables in shell Scripting 0

How to use variables in shell Scripting

In every programming language variables plays an important role , in Linux shell scripting we are using two types of variables : System Defined Variables & User Defined Variables. A variable in a shell...

Introduction To Shell Scripting  Basics 0

Introduction To Shell Scripting Basics

What is a Shell A shell is an interpreter in UNIX like Operating system. It takes commands typed by the user and calls the operating system to run those commands. In simple terms a...