Skip to content
Linux
  • Home
  • About
  • Contact Me
  • Privacy Policy

All About Linux.

Shell Scripting 101: The select Loop in Shell Scripts

We talked about the while, for, and until loops in shell scripts in the past few tutorials now. Let’s learn the select loop in shell scripts, a very interesting and unique loop in bash. Why is it interesting or unique? Let’s find out in this tutorial today. What is the select loop in Shell Scripts? …

Shell Scripting 101: The select Loop in Shell Scripts Read More »

Shell Scripting 101: Until Loop in Shell Scripts

Continuing our series, in today’s article, we’ll go over the until loop in shell scripts. We’ve already covered for loops and while loops in shell scripts in our previous tutorials. You’ll find a lot of similarities in the while and until loop so we’ll also look at the differences between both the loops in this …

Shell Scripting 101: Until Loop in Shell Scripts Read More »

Shell Scripting 101: Functions in Shell Scripts

After learning the basics in our previous tutorials about if-else statements, switch-case statements, etc, it’s time to create functions in shell scripts. Functions help us divide scripts into different sections and make the code more portable as well as reusable. Defining Functions in Shell Scripts The basic syntax for defining a function is just the …

Shell Scripting 101: Functions in Shell Scripts Read More »

Shell Scripting 101: Switch Case in Shell Scripts

Switch case in shell scripts is an efficient alternative to the if-elif-else statement that we learned previously. The concept of the switch case statements is that we provide different cases (conditions) to the statement that, when fulfilled, will execute specific blocks of commands. Let’s learn how to create a switch case block and how it …

Shell Scripting 101: Switch Case in Shell Scripts Read More »

Shell Scripting 101: The for Loop in Shell Scripts

Moving ahead with our tutorials now, let’s introduce the for loop in shell scripts in our today’s topic. We’ve already covered the while loop in our previous tutorial and used the break and continue statements to quit the while loop based on certain conditions. Let’s get right into the topic then! What’s The Difference Between …

Shell Scripting 101: The for Loop in Shell Scripts Read More »

Shell Scripting 101: If Else in Shell Script

In our Shell scripting 101 today, we’ll learn how to make use of if else in shell script and what different situations require the use of the if and else statement in Linux. A demonstrated use of “if statement” was done in our previous tutorial about break and continue statements. The different basic syntax for …

Shell Scripting 101: If Else in Shell Script Read More »

Shell Scripting 101: Break and Continue Statement in Linux

In our previous tutorial, we learned the use of the while loop in shell scripts. Now, let’s make use of the break and continue statement in Linux and manipulate the flow of loops. As we know, a loop will end if the condition supplied to it becomes FALSE. But what if you’re running a loop …

Shell Scripting 101: Break and Continue Statement in Linux Read More »

Shell Scripting 101: While Loop in Shell Script

In the previous shell scripting 101s, we covered arrays and variables in shell scripts. In this tutorial, we’ll cover the while loop in shell script. A while loop in shell scripts is used to repeat instructions multiple times until the condition for the loop stays true. Loops have a lot of use cases in real-world …

Shell Scripting 101: While Loop in Shell Script Read More »

Shell Scripting 101: Arrays in Shell Scripts

In the previous shell scripting tutorial, we worked with simple variables in shell scripts. Today we’ll cover arrays in shell scripts, and how we can create and make use of arrays within our scripts. To declare or create arrays on the fly, we will use the declare command (more explicit) or directly write array_name=(element1 element2 …

Shell Scripting 101: Arrays in Shell Scripts Read More »

Shell Scripting 101: Variables in Shell Scripts

In this article of the shell scripting tutorial series, we’ll learn how to create and use variables in shell scripts. We’ll walk through the different variables that we can make use of that are provided by the system for the Bourne Shell and how to create custom variables to use throughout a shell script. Variables …

Shell Scripting 101: Variables in Shell Scripts Read More »

Posts navigation
← Previous Page 1 … 66 67 68 … 74 Next Page →

Recent Posts

  • How To Disable Secure Boot to Install Linux
  • Linux useradd command – How to add users to Linux?
  • Best Way To Execute Linux Commands using Python
  • Customize your Firefox interface with CSS
  • Customizing Cinnamon Desktop Environment

Favorite Sites

  • Python Tutorials
  • GoLang Tutorials
  • CodeForGeek
  • VM-Help
  • MySQL Tutorials
  • Excel Tutorials
Copyright © 2022 · LinuxForDevices · LinuxForDevices is part of JournalDev IT Services Private Limited
Linux® is a registered trademark of Linus Torvalds.