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

All About Linux.

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 we learned previously. The concept of the switch case statements is that we provide an expression for 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 Condition in Bash Script

In the previous shell scripting 101s, we coveredย arrays and variables in shell scripts for Unix and Linux environments. 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

Shell Scripting 101: While Loop Condition in Bash 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 ยป

How to Create Symbolic Links in Ubuntu Linux

If you’re wondering what symbolic links are and how to create symbolic links in Ubuntu, you’ve arrived at the right tutorial. Even though this is a very simple concept, symbolic links are very useful when working with Linux. The reason why symbolic links are necessary is because of the fact that everything in Linux is

How to Create Symbolic Links in Ubuntu Linux Read More ยป

How to Install and Configure PostgreSQL on Ubuntu

PostgreSQL, or Postgres, is a relational database management system that provides an implementation of the SQL querying language. It is a popular choice for many small and large projects, having many advanced features like transaction management and transaction without read-locks, which are essential for a high performant database. Now, in this tutorial, let us look

How to Install and Configure PostgreSQL on Ubuntu Read More ยป

← Previous 1 … 121 122 123 … 128 Next →

Recent Posts

  • Linux Certification and Career Path: LFCS, RHCSA, DevOps, and Skills for IT Success
  • Virtualization and Containers in Linux: Docker and Podman
  • System Monitoring and Troubleshooting: CPU, Disk, and Memory Usage
  • Linux Security and Access Control: Firewalls, SELinux, and AppArmor
  • Understand Linux logging system and Job Control

Favorite Sites

  • Python Tutorials
  • GoLang Tutorials
  • CodeForGeek
  • VM-Help
  • MySQL Tutorials
  • Excel Tutorials
Linuxlogo

Learn everything about Linux, under a single roof. LinuxForDevices covers Linux tutorials, Open Source news, and courses to help you grow.

Copyright ยฉ 2025 ยท LinuxForDevices ยท LinuxForDevices is part of Diyansh IT Services Private Limited
Linuxยฎ is a registered trademark of Linus Torvalds.