## How to Use “Mod” Operator in Bash [5 Basic Usage]

The mod or modulo operator finds the remainder when a number is divided by another. The symbol of the modulus …

The mod or modulo operator finds the remainder when a number is divided by another. The symbol of the modulus …

Decimal and hexadecimal are popular number systems. Decimal is base 10, using 10 symbols (0-9), while hexadecimal is base 16. …

Generating random number in Bash is required for many applications. This is particularly useful for data encryption and simulation purposes. …

Mathematical or arithmetical calculations are essential for scheduling cron jobs, calculating the difference between the timestamps, and many other important …

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

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

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

Glob expansion is one of the elegant techniques in Bash to find files or match pathnames. There are a few …

Parameter expansion is one of the key concepts in Bash scripting. It is useful to find, replace or modify the …

History expansion is a way to recall, modify and execute commands in the history list. Bash shell can remember a …

Bash shell offers multiple array handling tools and techniques. Among them array expansion is prominent. It takes the array handling …

Have you ever performed any arithmetic calculations in Bash?Â If you’re new to Bash scripting, you might encounter difficulties when …

Tilde expansion is a feature in Bash that allows users to use the tilde character (~) as equivalent to a …

Brace expansion is a feature in Bash that permits to generate a range of strings of various types. These strings …

Expansion is a useful technique for expanding certain types of characters or symbols in Bash. These characters, symbols or syntax …

Find and replace is a fundamental task that is needed for changing things in files. Fortunately, Bash offers multiple alternative …

The date command in Bash is used to get the current time. The current time may differ depending on which …

The Bash date command is multi-functional, offering various options and formats to display date and time. With this command, you …

Taking a user password in Bash is an important task. One can utilize the read command to read passwords securely. …

UUID (Universal Unique Identifier) is used to uniquely identify almost all entities such as files, digital objects, etc. There are …