Linux

Linux

The command-line universe awaits! In this tag, we dive into the world of Linux, the open-source operating system that powers everything from your servers to your smart fridge. Whether you're tweaking configs, mastering Bash, or unleashing the power of the terminal, you’ll find tips, tricks, and tutorials to become a Linux guru. Embrace the penguin, and let’s hack the planet—one terminal command at a time!

Latest posts

Bash — The alias Built-in

Bash aliases let you turn long, frequently used commands into short, memorable shortcuts. Learn how alias works, how to create, inspect, remove, and persist aliases, and when a function or script is a better choice.

Bash — The eval Built-in

> **Learn what Bash’s `eval` really does, why it performs a second round of shell parsing, how it enables dynamic commands and variables, and why that same power can create serious security risks. Explore safer alternatives such as arrays, functions, and indirect expansion.**

Bash — The echo Built-in

Explore Bash’s echo built-in: print text and variables, control newlines, use escape sequences, handle quoting and special characters, and avoid common pitfalls. Plus, learn when printf is a better choice for precise and predictable output.

Bash — The `case` Conditional Statement

Learn how Bash’s case statement makes conditional branching cleaner and easier to read. Explore patterns, wildcards, multiple matches, defaults, and practical examples—and discover why case is often a better choice than a maze of if and elif.

Bash — The Built-in [[ ]] Conditional Expression

Discover Bash's powerful `[[ ]]` conditional expression: safer string and numeric comparisons, pattern matching, regular expressions, file tests, and logical operators—without the common pitfalls of `[ ]` and `test`

Bash !: Negating Command Results in Bash

Master the Bash ! operator to easily reverse exit statuses and trigger actions when a command fails. This quick guide breaks down how the logical NOT operator transforms success into failure (and vice versa) with practical scripting examples.

Bash: Getting Started with the Basic Concepts

Bash may look intimidating, but it is simply a program waiting for commands. Learn how Bash works, finds commands, handles files and patterns, and combines commands using pipes, redirection, variables, conditions, and more.

Bash Comments: Understanding the # Character

Learn how comments work in Bash, why they're essential for writing readable scripts, and the best practices every beginner should know. This guide covers single-line comments, inline comments, common mistakes, and the special #!/bin/bash exception.

Bash !: Inverting a Command's Exit Status

Learn how Bash's ! operator reverses a command's exit status and simplifies if statements and loops. This beginner-friendly guide explains exit codes, practical examples, common mistakes, and best practices for cleaner shell scripts.

Bash Built-in Commands: The Foundation of Shell Scripting

Bash is much more than a command launcher. Discover the built-in commands that power shell scripting, from cd and echo to functions, loops, variables, and process management. This guide introduces a complete series explaining every important Bash command with examples.