Skip to content
  • Home
  • About
  • eBooks
  • Shop
  • Donate
  • Linux Online Courses
  • Subscribe to Newsletter
  • Linux Hosting
  • A-Z Linux Commands
  • Get Involved
    • Testimonials
    • We are Hiring!
    • Submit Article Request
    • Suggest an Update
Tecmint: Linux Howtos, Tutorials & Guides
  • Linux Distro’s
    • CentOS Alternatives
    • Best Linux Distros
    • RedHat Distributions
    • Linux Distros for Beginners
    • Linux Server Distros
    • Debian Distributions
    • Ubuntu Distributions
    • Arch Linux Distros
    • Rolling Linux Distros
    • KDE Linux Distros
    • Secure Linux Distros
    • Linux Distros for Old PC
    • New Linux Distros
    • Linux Distros for Kids
    • Linux Distros for Windows Users
  • FAQ’s
  • Programming
    • Shell Scripting
    • Learn Python
    • Learn Awk
  • Linux Commands
  • Linux Tricks
  • Best Linux Tools
  • Certifications
    • RHCE Exam
    • RHCSA Exam
    • LFCE Exam
    • LFCS Exam
    • LFCA Exam
    • Ansible Exam
  • Guides
    • Hadoop Series
    • Docker Series
    • Postfix Mail
    • XenServer Series
    • RHEV Series
    • Clustering Series
    • LVM Series
    • RAID Series
    • KVM Series
    • iSCSI Series
    • Zentyal Series
    • Ansible Series
    • Django Series
    • Create GUI Apps
  • Monitoring Tools
    • Nagios
    • Zabbix
    • Cacti
    • Observium
    • Monitorix
    • Collectd
    • Collectl
    • MySQL Monitoring

Shell Scripting

Break and Continue Statements

How to Use Break and Continue Statements in Shell Scripts

1 Comment

In this article, we will take a look at how to use a break and continue in bash scripts. In bash, we have three main loop constructs (for, while, until). Break and continue statements

Use until Loop in Your Shell Scripts

How to Use until Loop in Your Shell Scripts

Leave a comment

In bash for, while, and until are three loop constructs. While each loop differs syntactically and functionally their purpose is to iterate over a block of code when a certain expression is evaluated. Until

Read File in Linux

Different Ways to Read File in Bash Script Using While Loop

Leave a comment

This article is all about how to read files in bash scripts using a while loop. Reading a file is a common operation in programming. You should be familiar with different methods and which

Use Heredoc in Bash Scripting

How to Use Heredoc in Shell Scripting

Leave a comment

Here document (Heredoc) is an input or file stream literal that is treated as a special block of code. This block of code will be passed to a command for processing. Heredoc originates in

Sourcing File in Shell Script

Learn Difference Between Sourcing and Forking in Bash

Leave a comment

The main focus of this article is to clearly understand what happens when you run the script vs source the script in bash. First, we will clearly understand how the program is submitted when

Learn Difference Between $$ and $BASHPID in Bash

Learn Difference Between $$ and $BASHPID in Bash

4 Comments

Recently I was working on a shell script and I saw a significant difference in how bash special variable $ and BASHPID behaves. Every process running in Linux will be assigned with a process

Create Simple Shell Scripts in Linux

How to Create Simple Shell Scripts in Linux

Leave a comment

Creating shell scripts is one of the most essential skills that Linux users should have at the tip of their fingers. Shell scripts play an enormous role in automating repetitive tasks which otherwise would

Over 3,500,000+ Readers

Join TecMint on Facebook Follow TecMint on Twitter Join TecMint on LinkedIn Follow TecMint on Instagram Follow TecMint via RSS Feed Subscribe to TecMint Newsletter
A Beginners Guide To Learn Linux for Free [with Examples]
Red Hat RHCSA/RHCE 8 Certification Study Guide [eBooks]
Linux Foundation LFCS and LFCE Certification Study Guide [eBooks]

Learn Linux Commands and Tools

3 Command Line Tools to Install Local Debian (.DEB) Packages

How to Use 8 Useful ‘Debian Goodies Utilities’ to Manage Debian Packages

How to Search and Remove Directories Recursively on Linux

How to Count Number of Files and Subdirectories inside a Given Directory

How Do I Access or Mount Windows/USB NTFS Partition in RHEL/CentOS/Fedora

Different Ways to Use Column Command in Linux

Join TecMint Weekly Newsletter

If You Appreciate What We Do Here On TecMint, You Should Consider:

Support Us

Linux Server Monitoring Tools

rtop – An Interactive Tool to Monitor Remote Linux Server Over SSH

How to Do Security Auditing of Linux System Using Lynis Tool

Tuned – Automatic Performance Tuning of CentOS/RHEL Servers

Install OpenNMS Network Monitoring in Debian and Ubuntu

How to Install Icinga2 Monitoring Tool on Ubuntu 20.04/22.04

Real Time Interactive IP LAN Monitoring with IPTraf Tool

Learn Linux Tricks & Tips

5 Useful Ways to Do Arithmetic in Linux Terminal

Linux Tricks: Play Game in Chrome, Text-to-Speech, Schedule a Job and Watch Commands in Linux

How to Use Awk and Regular Expressions to Filter Text or String in Files

How to Find Files With SUID and SGID Permissions in Linux

5 Ways to Keep Remote SSH Sessions and Processes Running After Disconnection

4 Ways to Send Email Attachment from Linux Command Line

Best Linux Tools

27 Best IDEs for C/C++ Programming or Source Code Editors on Linux

The 8 Best Free Anti-Virus Programs for Linux

Best Open Source Internet Radio Player for Linux

Top 5 Open-Source eLearning Platforms for Linux

Best Command-Line FTP Clients for Linux

7 Best Calendar Apps for Linux Desktop in 2020

  • Donate to TecMint
  • Contact Us
  • Advertise on TecMint
  • Linux Services
  • Copyright Policy
  • Privacy Policy
  • Career
  • Sponsored Post
Tecmint: Linux Howtos, Tutorials & Guides © 2022. All Rights Reserved.

The material in this site cannot be republished either online or offline, without our permission.

Hosting Sponsored by : Linode Cloud Hosting

Scroll back to top