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.
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!
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.
> **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.**
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.
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.
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`
What exactly happens when you put `#!/bin/bash` at the top of a script? Learn what a shebang really is, how the OS uses it, why `sh` isn't always Bash, and the difference between running, sourcing, and explicitly invoking a script.
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 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.
Learn how Bash's . (dot) command works and why it's different from running a script normally. Discover how to source files, share variables and functions, load configuration files, and build reusable Bash libraries with practical examples.
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.
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 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.