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 base64 decode.

Encode and Decode with “base64” in Bash [6 Examples]

March 31, 2024March 19, 2024 by Susmit Das Gupta

To encode and decode text files using base64 in Bash, use the following syntaxes: Encode text incorporating pipe command: echo …

Read more

Regular expressions (regex) in Bash.

A Complete Guide to Bash Regex

April 28, 2024March 19, 2024 by Auhona Islam

In Bash, Regex is the most powerful tool for pattern-matching and manipulation. Regex allows users to search, match, and manipulate …

Read more

bash exit 0 feature image

[Explained] What Are “exit 0” and “exit 1” in Bash?

March 31, 2024March 18, 2024 by Md Masrur Ul Alam

In Bash, using exit codes for effective script execution with robust error handling is a crucial step. Commands like exit …

Read more

OPTARG in Bash

How to Use OPTARG in Bash [3 Practical Examples]

April 23, 2024March 18, 2024 by Md Zahidul Islam Laku

The getopts (get options) is a built-in command Bash shell. The OPTARG variable in Bash is one of the few …

Read more

bash sudo command not found

[Fixed] “bash: sudo: command not found” Error

May 2, 2024March 17, 2024 by Mohammad Shah Miran

When you are trying to install a new Linux Desktop or Virtual Machine, you might get the error “sudo: command …

Read more

Return Array from function in Bash

How to Return Array From Bash Function? [7 Methods]

April 1, 2024March 17, 2024 by Mitu Akter Mou

To return an array from the function in Bash, use the following methods: Using Global Variable: my_function() declare my_array { …

Read more

An overview on how to get the first character of string in bash

How to Get the First Character from Bash String? [8 Methods]

March 31, 2024March 14, 2024 by Afia Zahin Oishi

In Bash scripting, extracting or getting the character is important for formatting and analyzing strings such as to validate, parse, …

Read more

Bash wait command

Bash “wait” Command in Process Management [6 Examples]

April 28, 2024March 14, 2024 by Nadiba Rahman

Using the “wait” command in Bash implies pausing the execution of a script until the background processes or jobs are …

Read more

solved bin bash m bad interpreter error

[SOLVED] “/bin/bash^M: bad interpreter: No such file or directory” Error

April 8, 2024March 14, 2024 by Mohammad Shah Miran

The error “/bin/bash^M: bad interpreter: No such file or directory” indicates a problem with line endings in the script. The …

Read more

Unset Bash Function Using “unset” Command [3 Examples]

March 18, 2024March 14, 2024 by Ridoy Chandra Shil

In bash scripting managing variables and functions is essential for maintaining a clean and organized environment. The unset command serves …

Read more

bash check exit code feature image

[4 Methods] How to Check Exit Code in Bash?

March 31, 2024March 13, 2024 by Md Masrur Ul Alam

Checking the exit code in Bash is a vital task to determine the success or failure of scripts. It leverages …

Read more

bash pass array to function

How to Pass Array as an Argument in Bash Function? [3 Ways]

April 23, 2024March 13, 2024 by Md Zahidul Islam Laku

To pass an array as an argument to a Bash function use the following techniques 1. Pass My_array as an …

Read more

code command not found error in Bash

[Solved] “bash: code: command not found” Error

May 2, 2024March 13, 2024 by Ashikur Rahman

The “code: command not found” error in Bash indicates that the VS Code is either not installed or inaccessible. To …

Read more

bash exit command feature image

Usage of “exit” Command in Bash [Explained]

March 31, 2024March 12, 2024 by Md Masrur Ul Alam

While working with Bash scripts, sometimes it may be necessary to terminate the script that provides a smooth way to …

Read more

what is bash empty function and how to define and utilize empty functions in Bash scripting effectively.

Bash Empty Function [A Complete Guide]

March 18, 2024March 12, 2024 by Ridoy Chandra Shil

The bash function serves as a cornerstone in the world of bash scripting. Within the framework of bash function, the …

Read more

Return Boolean from Function in Bash

How to Return Boolean From Bash Function [6 Methods]

March 17, 2024March 12, 2024 by Mitu Akter Mou

To return a boolean from the function in Bash, use the following methods: Using “return” Statement: my_function() { if return …

Read more

bash set exit code feature image

How to Set Exit Codes in Bash? [An Easy Guide]

March 31, 2024March 12, 2024 by Md Masrur Ul Alam

Exit codes are integer numbers from 0-255 used to indicate whether a script has run successfully or not. Effective process …

Read more

An overview on truncate string in bash

How to Truncate String in Bash? [5 Methods]

March 31, 2024March 12, 2024 by Afia Zahin Oishi

Truncate refers to making something shorter. In bash scripting, it means cutting the length or size of an input string …

Read more

bash node command not found error

[Solved] “bash: node: command not found” Error

May 2, 2024March 11, 2024 by Ashikur Rahman

The “node: command not found” error in Bash indicates that the Node.js is either not installed or inaccessible. To fix …

Read more

Usages of the "if" conditional statement within bash function with 7 practical examples and practice problems.

How to Use “if” Statement in Bash Function [7 Examples]

March 31, 2024March 1, 2024 by Ridoy Chandra Shil

The combination of the “if” conditional statement and functions in bash scripting enhances the script’s flexibility and modularity. When used …

Read more

Older posts
Newer posts
← Previous Page1 Page2 Page3 … 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.