Satish Kumar
MY BLOGS
-
Linux Concept
https://linuxconcept.com/
This Blog is for Linux Lover, we are providing tutorial content on Linux Operating system and Open Source Application.
LATEST ARTICLES ( 282 )
-
User Initialization Scripts in Linux
So far, we have seen different scripts that initialize the operating system prior to a user login. Once the basic operating system is initialized, the user logi... Read more
Posted on 07 May 2021 -
System Startup, Inittab, and Run Levels
When we power on the Linux system, shell scripts are run one after another and the Linux system is initialized. These scripts start various services, daemons,... Read more
Posted on 06 May 2021 -
Creating Dialog Boxes with the Dialog Utility in Linux Bash Script
The dialog utility is used to create a basic-level graphical user interface. We can use this in shell script to create very useful programs. Read more
Posted on 05 May 2021 -
Running Scripts Or Processes Even If the User Logs out
Sometimes, we may need our script to run even after we log out, such as when making a backup and similar activities. In this case, even if we log out, the syste... Read more
Posted on 04 May 2021 -
Using Traps Inside a Function in Linux Bash Script
If we use the trap command inside a function in the script, then the reassigned signal behavior will become global inside a script. We can check this effect in... Read more
Posted on 03 May 2021 -
Ignoring Signals in Linux for Bash Script
If we want the shell to ignore certain signals, then we can call the trap command followed by a pair of empty quotes as a command. Read more
Posted on 02 May 2021 -
Using the Trap Command in Linux Bash Script
If a signal or software interrupt is generated while the script is running, then we can define what action is performed by that interrupt handler using... Read more
Posted on 01 May 2021 -
Understanding Signals and Traps for Linux Shell Script
Two types of interrupts exist in the Linux operating system: hardware interrupts and software interrupts. Software interrupts are called signals or traps.... Read more
Posted on 30 April 2021 -
Creating a Library of Functions in Linux Shell Script
If we want to create our own library of functions, then we can create a script and add all the functions into this script. We can make all the functions from ou... Read more
Posted on 29 April 2021 -
Running Functions in the Background in Linux Bash Script
We have already seen in previous chapters that to run any command in the background, we have to terminate the command using : $ command Similarly, we can mak... Read more
Posted on 28 April 2021 -
Returning Information from Functions in Linux Bash Script
You have learned to pass command-line parameters to functions. Similarly, the function can return integers as a return value. Normally, functions return... Read more
Posted on 27 April 2021 -
Using Local Variables in Functions for Linux Bash Script
Whenever we declare a variable in a script, it is accessible to all functions. The variable is global by default. If the variable is modified by any line of... Read more
Posted on 26 April 2021 -
Sharing the Data with Many Functions in Linux Bash Script
We can create variables that may contain strings or numerical values. These global variables can be accessed by all the functions inside a script. A simple... Read more
Posted on 25 April 2021 -
Passing Arguments Or Parameters to Functions Using Linux Bash Script
In certain situations, we may need to pass arguments or parameters to functions. In such situations, we can pass arguments as follows. Calling the script with... Read more
Posted on 24 April 2021 -
IFS and Loops in Linux Bash Script
The shell has one environment variable, which is named the Internal Field Separator (IFS). This variable indicates how the words are separated on the command... Read more
Posted on 22 April 2021 -
Loop with Pipes and Execute Loop in Background Using Linux Bash Script
Piping the output of a loop to a Linux command If we need to redirect the output of a loop to any other Linux command such as sort, we can even redirect the loo... Read more
Posted on 21 April 2021 -
Using Until Loop in Linux Bash Script
The until command is similar to the while command. The given statements in the loop are executed as long as they evaluate the condition as true. As soon as the... Read more
Posted on 20 April 2021 -
Using Do – While Loop in Linux Bash Script
Similar to the for command, while is also the command for loop operations. The command next to while is evaluated. If it is successful or 0, then the commands... Read more
Posted on 19 April 2021 -
Exiting from a Loop with a Break Statement in Linux Bash Script
In the previous tutorial, we discussed about how continue can be used to exit from the current iteration of a loop. The break command is another way... Read more
Posted on 18 April 2021 -
Using Loop with a Continue in Linux Bash Script
Using the continue command, it is possible to exit from the current iteration of the loop and resume the next iteration of the loop. We use the for, while,... Read more
Posted on 17 April 2021