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 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.
In the world of Git, mistakes are common. Whether it's a wrong commit, an accidental merge, or a series of erroneous changes, knowing how to undo those mistakes is essential for maintaining a clean and efficient workflow.
Losing commits in Git can be a frustrating experience, but Git provides several ways to deal with it. Whether you've accidentally reset your branch, dropped a commit, or performed a hard reset, there are strategies to help you retrieve your lost commits.
I think I just found Ken Block's legendary Hoonigan car in Cyberpunk 2077… While exploring Night City, I came across a car that looks way too familiar — and it immediately reminded me of Ken Block and his iconic Hoonicorn.
In Git, changes are a natural part of the development process. However, mistakes happen, and sometimes you may need to undo or manage those changes. Git provides several commands to help you navigate this process, including reset, revert, and checkout.