MUO

Linux Bash Shell

Readers like you help support MUO. When you make a purchase using links on our site, we may earn an affiliate commission. Read More.

latest

Laptop screen with Linux's logo, a penguin 1
5 Bash Script Examples to Help You Learn Linux Programming

Want to learn programming on Linux? Get to grips with Bash.

By 
Man using MacBook with Terminal window on screen 1
How to Use Terminal on a Mac: A Beginner's Guide

The Terminal app on Mac lets you accomplish all sorts of tasks using the command line.

By 
A computer terminal showing a file listing 1
Zsh vs. Bash Scripting. What’s the Difference?

Both shells offer powerful scripting languages, but they’re not totally compatible.

By 
Computer monitors side-by-side showing dark screens with colored text. 1
How to Save Command Line Output to File on Windows, Mac, and Linux

Saving the output of a command to a file is helpful if you're trying to diagnose a problem, and it's super easy to do.

By 
A Linux terminal built with ASCII art 1
What Is the ASCII Table and How Do You Use It?

If you ever have the need to work with ASCII values, a lookup table is essential.

By 
Spiraling seashell 1
The Linux Bourne Shell Explained

You may have heard of Bash—the default shell on most Linux distros. There's another shell that comes preinstalled on Linux: the Bourne shell.

By 
Two women looking at code on a laptop. 1
What Is the Shebang (#!) Character Sequence in Linux?

Almost every Linux shell script begins with a line starting with "#!". This is known as the "shebang." Here's everything you need to know about it.

By 
linux neofetch showing debian system 1
The 6 Useful Bash Shell Variables You Should Know About

Bash is the default shell on most Linux distros. Here are some important Bash shell variables every Linux user needs to know.

By 
php code written using the ubuntu desktop 1
How to Install Z Shell (Zsh) and Oh My Zsh on Linux

Oh My Zsh helps you take your Z shell configurations to the next level. Here's how to install and configure both on your Linux machine.

By 
desktop setup with code on screen 1
How to Use Bash to Concatenate Strings

Many Bash scripts you'll write will need to work with text, so make sure you understand this basic operation.

By 
female engineer writing bash script on linux 1
How to Use Encrypted Passwords in Shell Scripts on Linux

Shell scripts can save you time and effort, but if you don't protect your passwords, they can be a liability. Here's how to stay safe.

By 
linux command chaining operators 1
10 Linux Command-Line Operators and What They Do

Similar to programming languages, Linux shells also employ certain operators. Here are some of the most-used command-chaining operators on Linux.

By 
Linux neofetch command 1
How to Read and Execute From a File With the Linux source Command

The Linux source command is a shell built-in that reads and executes a file in the current shell. Here's how you can use it on Linux.

By 
 1
What Is a Login Shell in Linux?

Linux launches a login shell when a user logs in to their account. So what are login shells, and how can you find out if you're running one or not?

By 
ubuntu bash prompt  1
Everything You Need to Know to Start Writing Bash Programs

You can use Bash scripts to automate all sorts of tasks. Get to grips with the fundamentals and begin your Bash scripting journey.

Person working on a laptop 1
Git
What Is Git Bash and How Do You Use It?

This tool aimed at Windows users comes with the power of a Unix shell and built-in support for Git.

By 
programmer writing bash scripts 1
How to Use Arrays in a Bash Script

Arrays can simplify many tasks, especially when you need to repeat an action across several files. Find out how to use them in your bash scripts.

By 
man confused linux jargon 1
15 Linux Terms, Jargons, and Lingo You Should Know About

If you find yourself constantly searching complex Linux terms on the internet, here's the one-stop solution to learn everything about the lingo.

By 
Windows Command Prompt window showing the  1
A Beginner's Guide to the Windows Command Prompt

If you're not familiar with the Command Prompt in Windows, here's a basic guide to the command line for newcomers.

By 
linux-terminal-directory 1
5 Reasons Why Linux Uses the Command Line So Much

Have you ever wondered why the command line is such an important part of the Linux ecosystem? Here's the answer.

By 
See more articles +