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

bash script examples

find and replace

How to Find and Replace String in Bash [5 Methods]

January 18, 2024August 31, 2023 by Md Zahidul Islam Laku

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

Read more

How to get current time in Bash

How to Get Current Time in Bash [4 Practical Cases]

January 18, 2024August 24, 2023 by Md Zahidul Islam Laku

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

Read more

Get timestamp in Bash

How to Get Timestamp in Bash [2 Practical Cases]

January 18, 2024August 23, 2023 by Md Zahidul Islam Laku

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

Read more

bash read password

How to Read Password in Bash [3 Practical Cases]

January 18, 2024August 21, 2023 by Md Zahidul Islam Laku

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

Read more

generate uuid

How to Generate UUID in Bash [3 Simple Methods]

February 14, 2024August 17, 2023 by Md Zahidul Islam Laku

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

Read more

output to file

How to Write the Output to a File in Bash Script [5 Practical Cases]

January 18, 2024August 13, 2023 by Md Zahidul Islam Laku

Sometimes, it’s important to save a command’s output in a separate file. Moreover, an error may occur while executing a …

Read more

Write to file using Bash script

3 Easy Ways to Write to a File in Bash Script

December 6, 2023August 13, 2023 by Md Zahidul Islam Laku

Writing to a file is important to store info for further analysis. Using Bash script one can easily write command …

Read more

How to get date in Bash

How to Get Date in Bash [2 Methods with Examples]

December 6, 2023August 3, 2023 by Md Zahidul Islam Laku

The date command in Bash scripting is widely used to retrieve and manipulate dates and times. It offers various formats …

Read more

How to print time in Bash

How to Print Time in Bash? [2 Quick Methods]

April 18, 2024August 3, 2023 by Md Zahidul Islam Laku

To print the current time in Bash, use the command: echo $(date +%T) Printing current time is useful for logging …

Read more

How to call another script in Bash

How to Call Another Script in Bash [2 Methods]

January 14, 2024August 3, 2023 by Md Zahidul Islam Laku

Calling another script within a Bash script is an important task. Once you call another script, the execution of the …

Read more

Date format in Bash

How to Use Date Format in Bash [5 Examples]

January 18, 2024August 3, 2023 by Md Zahidul Islam Laku

The date command in Bash offers multiple different formats for printing dates in different ways. This article provides you with …

Read more

Copy paste in Bash

How to Copy and Paste in Bash [2 Methods with Cases]

April 28, 2024August 3, 2023 by Md Zahidul Islam Laku

In Bash, copy and paste typically refers to operations involving text or files within the command line interface or the …

Read more

Bash list users

How to List Users in Bash [2 Easy Ways]

December 31, 2023August 3, 2023 by Md Zahidul Islam Laku

To list users in Bash utilize the /etc/passwd file. This file contains a lot of information about the users. You …

Read more

Bash clear screen

How to Clear Screen Using Bash Script? [3 Effective Methods]

April 23, 2024August 2, 2023 by Lamisa Musharrat

To maintain a clutter-free and organized workspace, clearing the screen is very important. You can use the command-line interface for …

Read more

Check Ubuntu Version Using Bash Scripts

How to Check Ubuntu Version Using Bash Scripts? [5 Methods]

April 23, 2024August 2, 2023 by Lamisa Musharrat

Checking the version of Ubuntu typically refers to determining the specific release version or codename of the Ubuntu operating system …

Read more

Bash get script name

How to Get Script Name Using Bash Script? [3 Easy Ways]

February 18, 2024August 2, 2023 by Lamisa Musharrat

Suppose you want to get the script name currently running using a Bash script. To get the bash script name …

Read more

How to send email in Bash

How to Send Email in Bash? [2 Methods]

April 22, 2024August 1, 2023 by Md Zahidul Islam Laku

To send email in Bash, first, you need to generate app-specific password and set up an SMTP server on your …

Read more

How to clear history in Bash

How to Clear History in Bash [2 Practical Cases]

December 6, 2023August 1, 2023 by Md Zahidul Islam Laku

Bash Keeps a log of every command you entered in the terminal. This history file is super useful for recalling …

Read more

List in Bash

How to Create a List in Bash Scripts? [2 Easy Methods]

April 16, 2024August 1, 2023 by Lamisa Musharrat

In Bash, there is no data type named “list”, but you can generate a list using bash scripts that you …

Read more

bash script to send email with attachment

Bash Script to Send Email With Attachment [Step-by-Step Guide]

January 14, 2024August 1, 2023 by Md Zahidul Islam Laku

There are multiple ways of sending emails with attachments. Here I am showing you how you can send emails by …

Read more

Older posts
Page1 Page2 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.