$_ · Bash track

Learn Bash scripting

Bash is the shell behind most Linux and macOS terminals. Learn it to move around your files, chain commands together and automate server chores.

New to coding altogether? Read the beginner path first.

Bash articles (70)

Bash

Creating a Small Project Using Shell Scripting

Introduction Shell scripting is a versatile and powerful tool that allows you to automate tasks, manage system processes, and perform various operations…

· 3 min read
Bash

Leveraging the Power of SQL in Shell Scripting

Introduction Combining the strengths of SQL (Structured Query Language) and shell scripting can be a powerful approach for managing and processing data in…

· 3 min read
Bash

Mastering Arrays in Shell Scripting

Introduction Arrays are a fundamental data structure in programming, and they play a crucial role in shell scripting as well. Whether you're managing…

· 3 min read
Bash

Mastering Variable Export in Shell Scripting

Introduction In the world of shell scripting, variable export is a fundamental concept that allows you to make environment variables available to child…

· 2 min read
Bash

Mastering Signal Trapping in Shell Scripting

Introduction In the world of shell scripting, signal trapping is a powerful technique that allows you to gracefully handle signals sent to your script…

· 3 min read
Bash

Navigating Processes in Shell Scripting

Introduction Shell scripting is a powerful tool for automating tasks and managing system resources in Unix like environments. Understanding and working…

· 3 min read
Bash

Mastering Functions in Shell Scripting

Introduction Shell scripting is a versatile and powerful tool for automating tasks and managing systems in Unix like environments. Functions are essential…

· 3 min read
Bash

Exploring the Power of 'set' and 'shift'

Introduction Shell scripting is a powerful tool for automating tasks and managing systems in the world of Linux and Unix. While it offers numerous built…

· 3 min read
Bash

Understanding the "case-esac" Statement

In Bash scripting, the "case esac" statement is a powerful tool for handling multiple conditional scenarios. It allows you to compare a variable or…

· 2 min read
Bash

Shell Scripting Conditional statements

In shell scripting, conditional statements are used to perform different actions based on the outcome of a comparison or test. There are several types of…

· 2 min read
Bash

Mathematical Expressions in shell Scripting

In shell scripting, mathematical expressions can be evaluated using the expr command or the $((...)) notation. The expr command is used to evaluate…

· 1 min read
Bash

Making Interactive Shell Scripts

An interactive shell script is a script that prompts the user for input, rather than just running automatically. There are several ways to create an…

· 2 min read
Bash

Debugging Shell Script

There are several ways to debug a shell script, depending on the level of detail you require. Here are a few standard methods: 1. echo statements: One of…

· 1 min read
Bash

Shell scripting ase – esac

ase and esac are control structures in shell scripts that are used to define a case statement. Here's an example of how you can use a case statement in a…

· 1 min read
Bash

Writing the first Shell Script

To write your first shell script, you will need to use a text editor to create a new file. You can use any text editor that you like, such as vi , nano …

· 1 min read
Bash

Shell Environment & Environment Variables

In this post, we will discuss in detail about the Unix environment. An important Unix concept is the environment , which is defined by environment…

· 13 min read
Bash

Loop Statements in Shell Script

There are total 3 types of looping statements that can be used in bash programming 1. while statement 2. for statement 3. until statement To control the…

· 1 min read
Bash

Special Symbols or Operators in Shell Scripting

In this post, we will learn how to use inbuild special symbols in the shell to make our code simple. Let's assume we have a file in the temp directory and…

· 2 min read
Bash

Linux ls command

ls syntax $ ls [ options ] [ file dir ] ls command options ls command main options: option description ls a list all files including hidden file starting…

· 2 min read
Bash

Linux cat Command

Display file’s contents to the standard output device (usually your monitor). Watch the video

· 1 min read
Bash

Shell Scripting Conditional Statement

Conditional Statements: There are total 5 conditional statements available in the bash programming,Which can be implemented in the different situation in…

· 2 min read
Bash

Unix / Linux - Special Variables

In the last post we learned how to declare variables and how to naming conventions.Where we can only use the " " underscore symbol in the variable…

· 3 min read
Bash

Shell Scripting Variables Declaration

A variable is a character or a word where we store a value. The value assigned could be a number, text, filename, device, or any other data type. A…

· 3 min read
Bash

Advanced Linux Commands to Make You Expert User

Linux commands and their optional parameter are very useful for the user who wants to take advance of the full feature of Linux CLI. In this post, we have…

· 38 min read
Bash

Linux Basic Commands

Command Description cat [filename] Display file’s contents to the standard output device (usually your monitor). cd /directorypath Change to directory…

· 2 min read
Bash

Root Login in Ubuntu Desktop 16.04

The root Account in Ubuntu is disabled by default because his password is not set. But if you’d like to use root Account by some reason, it’s possible to…

· 1 min read