Introduction of Linux

Linux an operating system named after its founder Linus Torvaldo, has proved to be a revolutionary platform since its inception in 1991. It was combined with GNU in 1992 to form a complete operating system. As a distributed open source operating system, Linux has been developed by number of companies, meaning no one company is solely responsible for its foundation.

Introduction.

Shell Scripting

Shell Scripting today is something which is gaining attention of most of the programmers because of companies shifting their working platform to LINUX/UNIX. Firstly the question that strikes everyone’s intelligent mind is- Why Linux? Because it is really fun working over it. It is quick.

Shell Scripting

Create and Execute the Shell Scripting

Open vi Editor
bhavna@ubuntu:~$ vi script1

Execute Shell Scripting

Echo Command in Shell Scripting

echo - command used to display a line of text, message on screen and value of variables.

Echo Command in Shell Scripting

Variable in Linux bash shell

Variables play a very interesting role in any programming language when it comes to processing and storing some data in memory whether temporarily or permanently. Variables create their unique storage location in RAM and these locations are assigned a unique number called memory address.

Variables in Linux

Arithmetic operation in Shell Scripting

expr command is used to perform shell arithmetic and evaluate expressions

Shell Arithmetic

case in Shell Scripting

case…esac Conditional construct statement- It is used to check for multiple conditions for a decision making process in a shell script.

Case in shell scripting