Home »
Linux
Linux Shell Script Programs / Examples
Shell Scripting is an open-source computer program that can be executed/ run on the Unix/Linux shell. Shell Scripting is a set of instructions to write a set of commands for the shell to execute.
What is Shell Script?
A shell script is a set of instructions / commands (program) designed to be run by the Unix/Linux shell. It is a command-line interpreter and typical operations performed by shell scripts include printing text & values, file manipulation, program execution, and printing text, etc.
Linux Shell Script Examples
This section contains the various examples (programs) of Shell Scripting to learn the basic & advanced concepts of Linux/Unix shell scripting. These Shell Script Examples are helpful for beginners and professionals who want to learn about Shell Scripting, how it works?
Linux Shell Script Programs
- Linux shell script program to create and print the value of variables
- Linux shell script program to add two numbers
- Linux shell script program to swap two numbers
- Linux shell script program to read two integer numbers and print the subtraction of both variables
- Linux shell script program to multiply two numbers
- Linux shell script program to print program name using command line argument
- Linux shell script program to add two numbers using command line arguments
- Linux shell script program to execute 'ls' command
- Linux shell script program to demonstrate the '$#' variable
- Linux shell script program to print the current process id