Skip to content
Learn Linux in 7 structured days, the free course inside Pro TecMint Sudo tier    Enroll Free
Tecmint: Linux Howtos, Tutorials & Guides
  • Latest Tutorials
  • Commands
    • A – Z Linux Commands
    • 100+ Linux Commands
  • Tools
  • Distros
    • Linux Distros for Beginners
    • Linux Distros for Experts
    • New Linux Distros
    • Linux Server Distros
    • Secure Linux Distros
    • CentOS Alternatives
    • RedHat Distributions
    • Debian Distributions
    • Ubuntu Distributions
    • Arch Linux Distros
    • Rolling Linux Distros
    • KDE Linux Distros
    • Linux Distros for Old PC
    • Linux Distros for Kids
    • Linux Distributions for Students
    • Linux Distros for Windows
  • Courses
    • Bash Scripting
    • Learn Linux
    • AI for Linux
    • RHCSA Certification
    • RHCE Certification
    • LFCS Certification
  • eBooks
    • RHCSA Exam
    • RHCE Exam
    • LFCS Exam
    • LFCE Exam
    • LFCA Exam
    • Ansible Exam
  • About
  • Advertise
Tecmint: Linux Howtos, Tutorials & Guides
  • Latest Tutorials
  • Commands
    • A – Z Linux Commands
    • 100+ Linux Commands
  • Tools
  • Distros
    • Linux Distros for Beginners
    • Linux Distros for Experts
    • New Linux Distros
    • Linux Server Distros
    • Secure Linux Distros
    • CentOS Alternatives
    • RedHat Distributions
    • Debian Distributions
    • Ubuntu Distributions
    • Arch Linux Distros
    • Rolling Linux Distros
    • KDE Linux Distros
    • Linux Distros for Old PC
    • Linux Distros for Kids
    • Linux Distributions for Students
    • Linux Distros for Windows
  • Courses
    • Bash Scripting
    • Learn Linux
    • AI for Linux
    • RHCSA Certification
    • RHCE Certification
    • LFCS Certification
  • eBooks
    • RHCSA Exam
    • RHCE Exam
    • LFCS Exam
    • LFCE Exam
    • LFCA Exam
    • Ansible Exam
  • About
  • Advertise

script functions

Shell Scripting Functions

Understanding and Writing functions in Shell Scripts – Part VI

Functions play an important role in any programming language. Like many real programming languages, bash has functions which are used

TecMint Weekly
Get the Learn Linux 7 Days Crash Course free when you join 34,000+ Linux professionals reading every Thursday.
Check your email for a magic link to get started.
Something went wrong. Please try again.
Free forever. Unsubscribe anytime.
Learn Linux Right Way
15 structured courses, ad-free articles, and the weekly newsletter in one place.
  • ✓SSH, Bash, Ubuntu, Golang, RHCSA, RHCE, LFCS, LFCA and more
  • ✓Ad-free access to all premium articles
  • ✓Priority help and Telegram community
  • ✓Weekly newsletter every Thursday
Join Root from $8/mo
$8/mo or $59/yr. Cancel anytime.

Linux Server Monitoring Tools

How to Monitor Node.js Applications Using PM2 Web Dashboard

Cpustat – Monitors CPU Utilization by Running Processes in Linux

How to Limit Time and Memory Usage of Processes in Linux

Guider – A System Wide Linux Performance Analyzer

How to Monitor Website and Application with Uptime Kuma

Tuned – Automatic Performance Tuning of CentOS/RHEL Servers

Learn Linux Tricks & Tips

How to Disable Shutdown and Reboot Commands in Linux

How to Find Linux Server Geographic Location in Terminal

6 Wc Command to Count Number of Lines, Words, and Characters in File

Gdu – A Pretty Fast Disk Usage Analyzer for Linux

How to Change or Set System Locales in Linux

10 ‘who’ Command Examples for Linux Newbies

Best Linux Tools

10 Best Tools to Install on Fresh Linux Mint Installation

11 Best Free and Low-Cost SSL Certificate Authorities

23 Best Open Source Text Editors for Linux in 2024

Universal Package Managers for Linux: Snap, Flatpak, and AppImage

8 Best Open Source Web Servers in 2024

10 Tools to Take or Capture Desktop Screenshots in Linux

Tecmint: Linux Howtos, Tutorials & Guides © 2026. All Rights Reserved.

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

Hosting Sponsored by : Linode Cloud Hosting