cover image

The comm utility lets you find which lines are unique to one file or another, and which lines are common to both.

cover image

This guide explains how to parse command-line options in Bash with getopts, including option strings, OPTARG and OPTIND, error handling, and practical script examples.

cover image
Bash Positional Parameters
4 Feb 2026
linuxize.com

Positional parameters are Bash variables that hold arguments passed to a script or function. Learn how to use $1, $2, $@, $#, and the shift command in Bash.

cover image

One of my favourite features of ChatGPT is its ability to write and execute code in a container. This feature launched as ChatGPT Code Interpreter nearly three years ago, was …

cover image

I have long since come to appreciate the value of writing scripts

cover image

In this tutorial, we’ll cover 10 essential Bash shell commands every data scientist should know—commands that save time, simplify tasks, and keep you focused on insights rather than busywork.

cover image

Here are 10 powerful one-liners that can help you quickly accomplish essential data tasks.

cover image

Introduction For beginners venturing into the world of Linux, understanding shell expansion is a crucial step towards mastering the command line. Shell expansion is a powerful feature that allows users to generate complex commands and manipulat...

cover image

It’s more than rails!

cover image

Bash scripting, a cornerstone of Unix and Linux system administration, offers powerful tools to automate repetitive tasks, streamline workflows, and handle complex operations. For those already comfortable with basic scripting, diving into advanced techniques can unlock new levels of efficiency and capability. This post will explore advanced shell scripting techniques in Bash, focusing on script optimization, robust error handling, and automating complex system administration tasks. Script Optimization Optimization is crucial for ensuring that your scripts run efficiently, especially when dealing with large datasets or intensive tasks. Here are some key techniques to optimize your Bash scripts.

cover image

$BASH_REMATCH is a special array variable in the Bash shell that stores the results of matching a regular expression using the =~ operator…

cover image
bash debugging
6 Mar 2024
wizardzines.com
cover image
dylanaraps/pure-bash-bible
11 Aug 2023
github.com

📖 A collection of pure bash alternatives to external processes. - dylanaraps/pure-bash-bible

cover image

As a developer, you most likely spend a significant amount of time working with the command-line...

cover image

Explains three methods to get and extract filename extension in Bash for Linux and Unix shell scripting needs.

cover image
Shell Built-in Commands
23 Jul 2023
linuxhandbook.com

In Linux, there are shell built-in commands which you are already using but never paid attention to. Learn more about them in this tutorial.

cover image
Using Until Loop in Bash
22 Jul 2023
linuxhandbook.com

While for maybe the most popular bash loop, wait until you discover until. Pun intended :)

cover image
Read File Line by Line in Bash
28 Jun 2023
linuxhandbook.com

Here are a couple of ways for reading file line by line in the Bash shell.

cover image
Appending to Arrays in Bash
30 May 2023
linuxhandbook.com

In this quick Bash tip, you'll learn about appending to an existing array in bash.

cover image
Using exec Command in Bash Shell Scripts
28 May 2023
linuxhandbook.com

The exec command in shell scripts is super useful for logging, reading from files and running commands by replacing the current process.

cover image
Special Variables in Bash Shell Scripting
5 Apr 2023
linuxhandbook.com

The bash shell has some special variables that have specific usages and purposes. Learn more about them here.

cover image

This is an open-source introduction to Bash scripting ebook that will help you learn the basics of Bash scripting and start writing awesome Bash scripts that will help you automate your daily SysOps, DevOps, and Dev tasks...

cover image

In this article, we are going to take a look at five different data science-related scripting-friendly tasks, where we should see how flexible and useful Bash can be.

cover image
Using Brace Expansion in Bash Shell
10 Nov 2022
linuxhandbook.com

Brace expansion in the bash shell is a lesser known but an awesome feature. Learn about using them like a Pro Linux user with practical examples.

This article is about a few quick thumb rules I use when writing shell scripts that I’ve come to appreciate over the years. Very opinionated....

cover image

Have you ever wondered how a Web server works under the hood? Moreover, would you be willing to...

cover image

A collection of handy Bash One-Liners and terminal tricks for data processing and Linux system maintenance. - onceupon/Bash-Oneliner

cover image

Learn how to find PID using a process name in Linux. Also learn to get the parent process ID (PPID) of the given process.

Bash Guide for Beginners
12 Dec 2021
tldp.org
The Bash Guide
11 Dec 2021
guide.bash.academy

A complete guide for newcomers and advanced users to correct usage and deepen understanding of the bash shell language.

cover image

📖 A collection of pure bash alternatives to external processes. - dylanaraps/pure-bash-bible

cover image
Bash scripting cheatsheet
2 Dec 2021
devhints.io

Variables · Functions · Interpolation · Brace expansions · Loops · Conditional execution · Command substitution · One-page guide to Bash scripting

cover image
Ten Things I Wish I’d Known About bash
2 Dec 2021
zwischenzugs.com

Intro Recently I wanted to deepen my understanding of bash by researching as much of it as possible. Because I felt bash is an often-used (and under-understood) technology, I ended up writing …

cover image
10 handy Bash aliases for Linux
2 Dec 2021
opensource.com

Get more efficient by using condensed versions of long Bash commands.

cover image

I write a letter to my past self about the Shell's importance I wish I'd focused on earlier in my career.

cover image

Update 25 Sep 2019: This article is now available in Japanese, thanks to the hard work of ラナ・クアール....

cover image

Images take up to 50% of the total size of an average web page. And if images are not optimized, users end up downloading extra bytes. And if they’re

cover image
Bash Patterns I Use Weekly
24 Nov 2021
will-keleher.com

5 bash tricks I find myself using often that I wish I'd discovered sooner.

cover image
What is Shebang in Linux Shell Scripting?
1 Oct 2021
linuxhandbook.com

The seemingly insignificant #! characters at the beginning of a shell script has a major significance on how your script will be executed.

cover image

You might have used variables in Bash before, but probably not like this.

cover image

Learn to process thousands of items reliably and repeatably in this installment.

The .bash_logout file is the individual login shell cleanup file. It is executed when a login shell exits. This file exists in the user's home directory. For example, $HOME/.bash_logout. This file is useful if you want to run task or another script or command automatically at logout. For example, clear the mysql command line history stored in ~/.mysql_history or to make a backup of files you can use this file.

cover image

In this post, I try to explore various ways to repeat a character and string in Bash 'n' times that must run on macOS/FreeBSD and Linux.

cover image
My Favorite One Liners | Muhammad
5 May 2021
muhammadraza.me

Commandline one liners that makes your workflow more productive

cover image

What exactly happens when we run a file starting with #! (aka shebang), and why some people use #!/us...

cover image

Free Introduction to Bash Scripting eBook.

cover image
How to Create Bash Aliases | Linuxize
1 Jun 2020
linuxize.com

Bash aliases are essentially shortcuts that can save you from having to remember long commands and eliminate a great deal of typing when you are working on the command line.

cover image

Ruby is one of the most popular languages today. It has an elegant syntax and it is the language behind the powerful Ruby on Rails framework. In this tutorial we will show you three different ways to install Ruby on Ubuntu 18.04 system.

cover image

Dead simple testing framework for Bash with coverage reporting - Checksum/critic.sh

Bash-my-AWS
19 Feb 2020
bash-my-aws.org

Bash-my-AWS is a simple but powerful set of CLI commands for managing resources on Amazon Web Services.

A short description and screenshot of some useful command line tools I use that aren't part of typical POSIX environment.

A blog by Darren Burns
29 Aug 2019
darrenburns.net
Five Command Line Tools for Data Science
2 Aug 2019
kdnuggets.com

You can do more data science than you think from the terminal.

cover image

I've long been impressed by shell one-liners. They seem like magical incantations. Pipe a few terse commands together, et voilà! Out pops the solution to a problem that would seem to require pages of code. Are these one-liners real or mythology? To some extent, they're both. Below I'll give a famous real example. Then I'll argue

cover image
Ramblings from Jessie: For the Love of Pipes
27 Jan 2019
blog.jessfraz.com

Why unix pipes are awesome.

cover image

Five lesser-known command line utilities you'll want to install right away.

cover image

A collection of small bash scripts for heavy terminal users - alexanderepstein/Bash-Snippets