Skip to content

Tag: linux

All the articles with the tag "linux".

bash `set -e` Doesn't Work Like You Think

bash `set -e` Doesn't Work Like You Think

· Updated:

set -e looks bulletproof, but it slips right through pipes, command substitution, and conditionals. The bash gotchas that bite at 2 AM, and how to fix them.

Bash Arithmetic Without bc

Bash Arithmetic Without bc

Bash does arithmetic natively, so you can drop bc for most math. Arithmetic expansion, conditions, bitwise operators, and the trap inside $(( )).

Ventoy: Boot Any OS, Any Time

Ventoy: Boot Any OS, Any Time

· Updated:

Ventoy turns any USB drive into a multi-boot drive, drop ISOs on it and boot any OS without re-flashing the drive each time.

The sudoers Mistake Everyone Makes Once

The sudoers Mistake Everyone Makes Once

One syntax error in /etc/sudoers locks everyone out of root. Use visudo, read the syntax properly, avoid the common mistakes, and know what NOPASSWD gives.

jq One-Liners Every Sysadmin Needs

jq One-Liners Every Sysadmin Needs

· Updated:

jq is JSON on the command line. Here are 5 one-liners that actually solve real problems: filtering, extracting, transforming, combining, and debugging.