How to Resize and Extend a Linux Partition and Filesystem

Extend a Linux partition and grow ext4, XFS, Btrfs, or LVM storage after a disk resize, with layout checks, safe ext4 shrink steps, and troubleshooting.

Extend a Linux partition and grow ext4, XFS, Btrfs, or LVM storage after a disk resize, with layout checks, safe ext4 shrink steps, and troubleshooting.

Bash parameter expansion handles default values, substrings, string length, pattern trimming, search and replace, and case conversion, all inside the shell.

The Linux /dev/null device discards anything written to it and returns EOF when read. This guide shows how to silence stdout, stderr, cron output, and empty files.

Check whether a command exists in Bash with command -v, capture its path, validate several dependencies, and compare type, hash, and which.

Bash subshells run commands in an isolated shell environment. This guide explains parentheses, variable scope, directory changes, command substitution, pipelines, and exit codes.

Linux pipes connect command output to another command's input. Learn the | operator, pipefail, stderr piping, xargs, named pipes, and process substitution.

Practical Bash array operations for checking length, finding values, slicing, reversing, iterating, appending, prepending, and removing elements.

This guide explains how to pass arguments to Bash scripts, read positional parameters, loop over $@, set defaults, validate input, and parse flags with getopts.

How to do arithmetic in Bash with the (( )) operator, $(( )) expansion, the let builtin, and bc or awk for floating-point math the shell cannot do natively.

Bash string manipulation using parameter expansion: extract substrings, replace text, strip prefixes and suffixes, change case, and check for substrings with practical examples.

Practical Bash best practices for writing safer and more predictable scripts, covering strict mode, quoting, error handling, and everyday patterns.
Quick reference for fdisk commands: list disks, create partition tables, add partitions, change partition types, write changes, and quit safely

A practical guide to Bash strict mode: how set -e, set -u, set -o pipefail, and IFS change script behavior, why they catch silent failures, and when to turn them off.

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

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.

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.

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 …

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

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.

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

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...
It’s more than rails!

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…

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

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

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

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

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.

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

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

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

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

The bash shell has some special variables that have specific usages and purposes. Learn more about them here.
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...

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.

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....

Have you ever wondered how a Web server works under the hood? Moreover, would you be willing to...
A collection of handy Bash One-Liners and terminal tricks for data processing and Linux system maintenance. - onceupon/Bash-Oneliner

Learn how to find PID using a process name in Linux. Also learn to get the parent process ID (PPID) of the given process.
A complete guide for newcomers and advanced users to correct usage and deepen understanding of the bash shell language.
📖 A collection of pure bash alternatives to external processes. - dylanaraps/pure-bash-bible

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

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 …
Get more efficient by using condensed versions of long Bash commands.