Shell script tutorial: Shell script Function

function with argument example

The function is one of the most powerful feature of the shell script. Function is the line of codes between two parenthesis which is executed when it is called. The functions in shell script can or cannot contains the arguments. For example: we can create a function with the function name ‘addition’ which will add [...]

How to make your own calculator using shell script in Linux

Calculator Menu

Shell script is the powerhouse of Linux. We have done various things in shell scripting up to now. If you are reaching this tutorial directly and you don’t have a single clue about the shell script I recommend looking at our shell scripting section first. In this tutorial we are going to build a simple [...]

Decision making in shell script(if..else condition)

output of if statement

The if and else condition is used in decision making in shell script. If the given condition is true, the command is executed otherwise won’t. Condition is the comparison between the values. For example, you have seen in some websites, “Enter only if you are 18+”. If you click on Yes you can enter into [...]

Linux/Unix Shell Script Basic: User Inputs and variables

User input

This tutorial is continue to the how to write, save and execute the shell script. If you are already a programmer, then you are already familiar with the word variable. Variable is something that stores the value temporarily. We can store anything in the variable and later call that variable. Also, we can ask to [...]

How to execute Python scripts(.py) in Linux

Python program

You can execute python scripts in Linux directly using the terminal. For both programmers and users, it can be very useful. It’s simple to run the python program in the Linux terminal. You just need to do couple of things. You can create a .py a program yourself and you may have already .py program [...]