Logo
  • Ubuntu
  • CentOS
  • Debian
  • Fedora
  • RedHat

Shell Scripting - DesignLinux

Mar 24 2021
  • designlinux
  • 0 Comments
    • Bash Shell
    • Shell Scripting
How to Use Break and Continue Statements in Shell Scripts

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 are bash builtin and used to alter the flow of your loops. This concept of break and continue are available in

Read More
Mar 23 2021
  • designlinux
  • 0 Comments
    • Bash Shell
    • Shell Scripting
How to Use until Loop in Your Shell Scripts

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 loop is used to execute a block of code until the expression is evaluated to be false. This is exactly the

Read More
Mar 18 2021
  • designlinux
  • 0 Comments
    • Bash Shell
    • Shell Scripting
Different Ways to Read File in Bash Script Using While Loop

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 method is more efficient to use. In bash, a single task can be achieved in many ways but there is always

Read More
Mar 08 2021
  • designlinux
  • 0 Comments
    • Bash Shell
    • Linux Commands
    • Shell Scripting
How to Use Heredoc in Shell Scripting

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 UNIX shells and can be found in popular Linux shells like sh, tcsh, ksh, bash, zsh, csh. Notably, other programming languages

Read More
Feb 18 2021
  • designlinux
  • 0 Comments
    • Bash Shell
    • Shell Scripting
Learn Difference Between Sourcing and Forking in Bash

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 you call the script in different ways. NOTE: creating the script with an extension doesn’t matter. Script will run fine even

Read More
Feb 15 2021
  • designlinux
  • 0 Comments
    • Bash Shell
    • Shell Scripting
Learn Difference Between $$ and $BASHPID in Bash

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 ID and that is how the operating system handles the process. Similarly, your bash terminal session will also be assigned with

Read More
Nov 12 2020
  • designlinux
  • 0 Comments
    • Bash Shell
    • Shell Scripting
How to Create Simple Shell Scripts in Linux

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 be tedious executing line by line. In this tutorial, we highlight some of the basic shell scripting operations that every Linux

Read More
Popular Post
  • How to Install Skype on Arch Linux
  • How to Check the PostgreSQL Version
  • Du Command in Linux
  • How to Start, Stop, or Restart Nginx
  • How to Install Shutter Screenshot Tool in Ubuntu 20.04
  • Echo Command in Linux with Examples
  • Bash Case Statement
  • How to List Cron Jobs in Linux
  • How to Boost the Productivity with Sublime Text Snippets
  • How to Change Hostname on Ubuntu 20.04
Recent Posts
  • How to Install Puppet on Ubuntu 22.04
  • How to Install Skype on Ubuntu 22.04 LTS
  • How to Install Slack on Ubuntu 22.04
  • 25 Outstanding Backup Utilities for Linux Systems in 2023
  • How to Install Java on Ubuntu 22.04
  • How to Install Jenkins on Ubuntu 22.04
  • Progress – Show Percentage of Copied Data for (cp, mv, dd, tar) Commands
  • How to Monitor Progress of (Copy/Backup/Compress) Data using ‘pv’ Command
  • How to Install GIMP on Ubuntu 22.04
  • How to Install Notepad++ on Debian 11
Recent Comments
    Popular Tags
    apache Apache Tips bash browser cassandra centos CentOS Tips commandline tools database debian Debian Tips elasticsearch fail2ban Fedora Tips git Hadoop Tips java kernel LAMP Guides LFCA Certification Exam linux distros Linux IDE Editors Linux Mint Tips linux network monitoring linux office suite linux server monitoring Linux Tricks loop mariadb mysql MySQL Tips Networking Tips Nginx Tips php postgresql python rdp RHEL Tips Rocky Linux Tips security ssh SSH Tips terminal ubuntu Ubuntu Tips
    Archives
    • January 2023
    • December 2022
    • November 2022
    • October 2022
    • September 2022
    • July 2022
    • June 2022
    • April 2022
    • March 2022
    • February 2022
    • January 2022
    • December 2021
    • November 2021
    • October 2021
    • September 2021
    • August 2021
    • July 2021
    • June 2021
    • May 2021
    • April 2021
    • March 2021
    • February 2021
    • January 2021
    • December 2020
    • November 2020
    • October 2020
    • September 2020
    • August 2020
    • July 2020
    • June 2020
    • May 2020
    Categories
    • AlmaLinux
    • Android
    • Ansible
    • Apache
    • Arch Linux
    • AWS
    • Backups
    • Bash Shell
    • Bodhi Linux
    • CentOS
    • CentOS Stream
    • Chef
    • Cloud Software
    • CMS
    • Commandline Tools
    • Control Panels
    • CouchDB
    • Data Recovery Tools
    • Databases
    • Debian
    • Deepin Linux
    • Desktops
    • Development Tools
    • Docker
    • Download Managers
    • Drupal
    • Editors
    • Elementary OS
    • Encryption Tools
    • Fedora
    • Firewalls
    • FreeBSD
    • FTP
    • GIMP
    • Git
    • Hadoop
    • HAProxy
    • Java
    • Jenkins
    • Joomla
    • Kali Linux
    • KDE
    • Kubernetes
    • KVM
    • Laravel
    • Let's Encrypt
    • LFCA
    • Linux Certifications
    • Linux Commands
    • Linux Desktop
    • Linux Distros
    • Linux IDE
    • Linux Mint
    • Linux Talks
    • Lubuntu
    • LXC
    • Mail Server
    • Manjaro
    • MariaDB
    • MongoDB
    • Monitoring Tools
    • MySQL
    • Network
    • Networking Commands
    • NFS
    • Nginx
    • Nodejs
    • NTP
    • Open Source
    • OpenSUSE
    • Oracle Linux
    • Package Managers
    • Pentoo
    • PHP
    • Podman
    • Postfix Mail Server
    • PostgreSQL
    • Python
    • Questions
    • RedHat
    • Redis Server
    • Rocky Linux
    • Security
    • Shell Scripting
    • SQLite
    • SSH
    • Storage
    • Suse
    • Terminals
    • Text Editors
    • Top Tools
    • Torrent Clients
    • Tutorial
    • Ubuntu
    • Udemy Courses
    • Uncategorized
    • VirtualBox
    • Virtualization
    • VMware
    • VPN
    • VSCode Editor
    • Web Browsers
    • Web Design
    • Web Hosting
    • Web Servers
    • Webmin
    • Windows
    • Windows Subsystem
    • WordPress
    • Zabbix
    • Zentyal
    • Zorin OS
    Visits
    • 0
    • 27
    • 148,262

    DesignLinux.com © All rights reserved