Tagged: bash

du & df commands

Use of du & df commands (with examples)

In this article I will discuss du & df commands. Both du & df commands are important utilities of Linux system & shows disk usage of Linux filesystem. Here we will share usage of...

user & group management

User & Group management : Complete Beginner’s Guide

One of the major work of a System Administrator is User & Group Management. We have to create new users & groups, delete old ones, providing users access to a group or folder etc etc....

use regex

Bash Scripting: Learn to use REGEX (Part 2- Intermediate)

In our earlier tutorial, we learned to use regex with some basic concepts & we learned about meta-characters & learned to use those meta-chracters to create some easy but effective regex terms. We will...

regex basics

Bash Scripting: Learn to use REGEX (Basics)

Regular expressions or regex or regexp are basically strings of character that define a search pattern, they can be used for performing ‘Search’ or ‘Search & Replace’ operations as well as can be used...

bash tips tricks

Important BASH tips tricks for Beginners

Hello Linux-Fanatics, this post is dedicated to those users who are just getting started with their Linux Journey. I am sharing some Bash tips tricks which will make you more familiar with BASH &...

functions

13- BASH Scripting – Creating FUNCTIONS in script

In our last tutorial, we discussed about advanced uses of I/O redirection & we will now learn to create functions for our scripts. Learning how to create a function is an important skill required...

I/O Redirection

12- BASH Scripting – I/O Redirection

Hello Linux-fanatics, in our previous tutorials we have discussed how we can redirect output of a script to a file or use a file as input in our scripts. We will now discuss I/O...

While loop & until loop

10-Bash Scripting – While loop & Until loop commands

Hello Linux-fanatics, In our last tutorial we learned to use READ command to take user’s Input & also learned to redirect output of a script to a file. In this tutorial we will be...

break command continue command

11- BASH Scripting – Break command & Continue command (Controlling the loops)

Hello Linux-fanatics, In our last tutorial we learned to use while & until loops in our scripts & now in this tutorial we will discuss to control our loops by using break & continue...

read command

9- Bash Scripting- Taking user’s Input using Read command

Hello Linux-fanatics. In our last tutorial we discussed for conditional statement, & now we will discuss how we can take user’s input as value for our variables by using READ command & how we...

for conditional statement

8- BASH Scripting – FOR Conditional Statement

Hello, Linux-fanatics, in our earlier tutorial we discussed advanced used of if-then-else conditional statements. In this tutorial, we will discuss for-conditional statement. for statement is used where we require a set of commands to...

Scripting

7- BASH Scripting- Advanced uses of If-then conditional statement

Welcome Linux –fanatics, this is 7th tutorial in BASH scripting series. In our previous scripting tutorial, we discussed File, String & Numeric comparisons  (also check out rest of scripting tutorials HERE). We will now be...

File comparisons

6- BASH Scripting – File, Numeric & String comparisons

HelloLinux Fanatics. In this tutorial, we will be discussing Numeric Comparisons, String Comparison & File Comparisons. (all scripting tutorials are here). Syntax for doing comparisons If [ conditions/comparisons] then commands fi We can use other...

Conditional statements

5- BASH Scripting – Conditional Statements (if-then, else, elif)

Welcome guys to our 5th tutorials in BASH scripting series (other tutorials are here). In this tutorial, we will be discussing some of the conditional statements (aka structured commands). Firstly, what are Conditional statements ?...

scripting

4- BASH Scripting – Using Math in scripts

Hello Linux-fanatics, this is my 4th tutorial in BASH Scripting series (other tutorials are HERE). In this tutorial we will be discussing about using mathematical operations in our scripts. Learning to do Math in scripting...

Script

3- BASH Scripting – Basic scripting & using variables in script

Hello Linux-fanatics, this is the part 3 of BASH Scripting series. In this tutorial, we will be finally writing our first BASH script & also use variables in our scripts. As already discussed in Part...