Skip to content
LinuxSimply
  • Courses
  • Tutorials
    • Glossary
    • Commands
    • Linux Basics
    • Bash Scripting
    • Ubuntu
    • Networking
    • Bash Programming
    • Linux Applications
    • Miscellaneous
  • Cheat Sheets
  • Forum
  • About

Bash Scripting

bash true false

Boolean Variables “True False” and Logical Operators in Bash

January 10, 2024November 21, 2023 by Mohammad Shah Miran

Boolean values like “true” and “false” are frequently used in Bash scripting to indicate success or failure. These variables work …

Read more

How to Divide Numbers in Bash

How to Divide Two Numbers in Bash [8 Easy Ways]

January 16, 2024November 21, 2023 by Md Zahidul Islam Laku

To divide two numbers in Bash use the following methods: Divide two integer variables x and y using expr command: …

Read more

Feature image-Bash check if a variable is set or not.

Check If a Variable is Set or Not in Bash [4 Methods]

February 11, 2024November 21, 2023 by Nadiba Rahman

Setting a variable is a process that initializes the variable, assigning it a value that can be accessed and used …

Read more

Showing bash files and directories in details

Bash Files and Directories

December 13, 2023November 21, 2023 by Afia Zahin Oishi

Files and directories are fundamental components of the file system that can be interacted with through command-line operations in Bash. …

Read more

bash associative array feature image

Bash Associative Arrays [Explained]

February 18, 2024November 20, 2023 by Md Masrur Ul Alam

An Associative array in Bash is a robust data structure providing flexibility in data management.  It can assign values to …

Read more

bash if regex

How to Use Regex in Bash If Condition? [4 Cases]

March 27, 2024November 20, 2023 by Susmit Das Gupta

Regex or regular expression is a sequence of characters that specifies a search pattern. Matching with regex can be done …

Read more

bash if else condition in one line

Bash If-Else Condition in One-Line [2 Ways]

April 17, 2024November 19, 2023 by Mitu Akter Mou

In the traditional approach of using if-else structures, you had to write a bunch of lines of code to execute …

Read more

bash index array feature image

Index Array in Bash [Explained]

January 9, 2024November 19, 2023 by Md Masrur Ul Alam

An indexed array is a data structure that stores a collection of elements accessed by numerical indices. These arrays are …

Read more

Feature image-Bash check if a variable is empty or not

How to Check If a Variable is Empty/Null in Bash? [4 Methods]

May 9, 2024November 19, 2023 by Nadiba Rahman

To check if a variable is empty or null in Bash, use -z, -n, equal comparison with if statement. In …

Read more

bash sum numbers

How to Sum Up Numbers in Bash [Explained With Examples]

May 4, 2024November 16, 2023 by Md Zahidul Islam Laku

Adding numbers is one of the basic math operations one needs to perform. In the Bash shell, there are a …

Read more

bash bitwise AND

How to Use Bitwise “AND” Operator in Bash Script [2 Examples]

February 25, 2024November 16, 2023 by Mohammad Shah Miran

The bitwise AND operator in bash, represented by ‘&’, performs AND operation on corresponding bits of two numbers. It results …

Read more

Check if an Array Contains an Element in bash

Check If Array Contains an Element in Bash [6 Methods]

February 28, 2024November 15, 2023 by Mitu Akter Mou

Bash arrays provide a powerful tool for storing multiple values in one variable. While dealing with arrays, determining whether a …

Read more

bash rm if exists

Remove Using ‘rm’ If Files Exist in Bash [6 Cases]

December 4, 2023November 15, 2023 by Susmit Das Gupta

The ‘rm’ command is a powerful tool for deleting files, but when it comes to scenarios where the file’s existence …

Read more

bash bitwise operators

Bitwise Operators in Bash Scripting

December 13, 2023November 14, 2023 by Mohammad Shah Miran

A bit is the smallest unit of data and stands for “binary digit.” It can hold either 0 or 1 …

Read more

Feature image-Check if Boolean value is true or false in Bash

How to Check a Boolean If True or False in Bash [Easy Guide]

May 9, 2024November 14, 2023 by Nadiba Rahman

Bash does not include any distinct Boolean data type, rather Boolean logic can be utilized by defining variables with integer …

Read more

bash print array

How to Print an Array in Bash? [5 Cases]

April 23, 2024November 14, 2023 by Md Masrur Ul Alam

You can use the following 5 methods to print an array in Bash: To print the entire array: ${your_array[@ or …

Read more

Arithmetic Operators in Bash

Arithmetic Operators in Bash

January 16, 2024November 13, 2023 by Md Zahidul Islam Laku

Arithmetic operators are operators that facilitate the evaluation of a desired mathematical expression. Bash shell supports a lot of arithmetic …

Read more

bash ternary operator

Usage of Ternary Operator in Bash [with 2 Examples]

December 12, 2023November 13, 2023 by Mohammad Shah Miran

A ternary operator is a concise way to express a conditional (if-else) statement in Bash. It’s called “ternary” because it …

Read more

Feature image-Bash 'if' statement test.png

Bash Test Operations in ‘If’ Statement

May 9, 2024November 12, 2023 by Nadiba Rahman

Bash test operation is a prominent way to use the built-in “test” command or the equivalent operator [ ] (square …

Read more

bash set environment variables

How to List and Set Bash Environment Variables? [3 Methods]

November 13, 2023November 12, 2023 by Susmit Das Gupta

Environment variables are dynamic named values that can affect the way running processes behave. To list environment variables in Bash, …

Read more

Older posts
Newer posts
← Previous Page1 … Page10 Page11 Page12 … Page20 Next →
linuxsimply white logo
LinuxSimply serves as an informational
repository about the Linux operating system.

Get In Touch!

Company

  • About Us
  • Contact Us
  • Career
  • All Contributors

Services

  • Pricing
  • System Administration
  • Server Management
  • Bash Automation
card

Resources

  • Courses
  • Help Forum
  • Cheat Sheets
  • Free Downloads
trustpilot logo

Legal Corner

  • Disclaimer
  • Privacy Policy
  • Editorial Policy
  • Terms & Conditions
dmca
LinuxSimply is owned by , an IT & Digital Media Company.

Copyright © 2024 LinuxSimply | All Rights Reserved.