grep
80+ tested grep examples: recursive search, regex flavours, context lines, counting, scripting, and more.
Practical Linux and Debian tips, tricks, and command references.
80+ tested grep examples: recursive search, regex flavours, context lines, counting, scripting, and more.
How | connects commands together, and how >, >>, 2>&1, and <() route data to and from files, other commands, and each other.
Why unquoted variables break bash scripts, when to use double vs single quotes, and how glob characters make it worse.
Locate what's actually eating your disk space, from a whole filesystem down to one directory.
The apt, apt-get, and dpkg commands that cover almost everything you'll do to manage packages on Debian, and how remove differs from purge.
80+ tested curl examples: GET/POST/PUT/DELETE, headers, auth, cookies, uploads, redirects, retries, and scripting.
Tested find examples: name and type filters, size and age, permissions, -exec vs -delete, and safe scripting patterns.
80+ tested grep examples: recursive search, regex flavours, context lines, counting, scripting, and more.
Tested sed examples: substitution, addressing, deletion, in-place editing, and multi-command scripts.
Tested tar examples: create, list, and extract archives, choose a compression format, and verify integrity.
How $?, PIPESTATUS, set -e, and pipefail combine to tell a script what actually succeeded or failed, and where each one falls short.
The rwx/owner-group-other model, numeric vs symbolic chmod, umask, and why setuid/setgid on directories behave differently than you'd expect.
How | connects commands together, and how >, >>, 2>&1, and <() route data to and from files, other commands, and each other.
Write, mark executable, and run your first bash script, plus what the shebang line and PATH lookup actually do.
Why unquoted variables break bash scripts, when to use double vs single quotes, and how glob characters make it worse.
The difference between [ and [[ in bash, why unquoted variables crash [ but not [[, and pattern matching with case.
Rename many files at once with a plain bash loop, safely handling spaces and previewing changes before committing.
Transfer a file or directory tree between two machines with scp or rsync, and resume an interrupted transfer without starting over.
Locate what's actually eating your disk space, from a whole filesystem down to one directory.
Identify the process bound to a TCP port that's refusing to let a service start, then stop it.
Watch a log file as new lines are written, filter it live, and keep watching across log rotation.