Tag

#bash

17articles
BasicsNov 16, 2026

What is stdin — and why a loop over a server list only handles the first one

What stdin (standard input) is, in plain words: where a program reads data from, why CI and AI agents hang on a question, and how to fix it.

5 min read
BasicsNov 16, 2026

What is a shebang — and why a script from Windows fails with python3\r

What a shebang (#!) at the top of a script is, in plain words: who reads that line, why /usr/bin/env exists, and where the mysterious python3\r comes from.

5 min read
BasicsNov 15, 2026

Single or double quotes in the terminal — and where your $5 went

Single vs double quotes in bash and zsh: how they differ, why echo eats $5 and exclamation marks, and which quotes to use for JSON, git and curl.

5 min read
BasicsNov 14, 2026

What is xargs — and why rm can't hear your pipe

What is xargs in plain words: why you need it, why echo file | rm does nothing, how to avoid tripping on spaces and quotes, and what xargs -0 does.

5 min read
GuidesNov 14, 2026

Terminal keyboard shortcuts — 8 combos so you stop holding the arrow key

Terminal keyboard shortcuts for beginners: search history with Ctrl+R, jump to line start, delete a word, paste back what you cut. 8 combos for Mac and Linux.

5 min read
GuidesNov 14, 2026

How to create an alias in the terminal — and keep it forever

How to create a terminal alias on macOS and Linux: a short command instead of a long one, saving it in .zshrc or .bashrc, and why aliases fail in scripts.

5 min read
GuidesNov 11, 2026

Why your terminal is frozen and won't respond to keys — and what Ctrl+S has to do with it

Why your terminal is frozen and won't respond to keys: a command waiting for input, an unclosed quote, or a pressed Ctrl+S. How to check and get it back.

5 min read
BasicsNov 11, 2026

What is a subshell — and why your loop counter is back to 0

What a subshell in bash is, in plain words: why a variable set in a while loop after a pipe vanishes, what ( ) is for, and how to keep cd and counters.

5 min read
BasicsNov 11, 2026

What is a heredoc (<<EOF) — and why every $ vanished from your script

What a heredoc in bash is, in plain words: how cat <<EOF works, why the $ inside disappear, why to quote 'EOF', and how AI agents use it for commits.

5 min read
GuidesNov 10, 2026

Why your bash script breaks on spaces — and deletes the wrong file

Why a bash script breaks on files with spaces: quotes around variables, looping over ls, $* versus $@, and the empty variable that wiped a disk.

6 min read
BasicsNov 10, 2026

What is a pipe in the terminal — and why an endless command ends instantly

What a pipe (|) is in the terminal, in plain words: why commands run at the same time, where Broken pipe comes from, and how to feed logs straight to AI.

5 min read
BasicsNov 10, 2026

source vs ./script.sh — why your script ran and nothing changed

How source differs from running ./script.sh: why cd and export don't stick, why activate breaks, and why exit in a sourced file closes your terminal.

5 min read
GuidesNov 9, 2026

How to rename many files at once — without losing half of them

How to bulk rename files in the terminal: a bash loop, Rename-Item on Windows, a dry run, and protection from overwrites when two names collide.

6 min read
BasicsNov 9, 2026

&& vs ; in the terminal — the difference, and how one character ships broken code

How && differs from ; in bash: what happens when the first command fails, which exit code the chain returns, what to do in PowerShell and when to use each.

5 min read
GuidesNov 8, 2026

Why your script says Permission denied — even as root, and what AI has to do with it

Permission denied when running a script: four real causes and how to check each one. Why sudo doesn't help, what Git breaks, and how to fix the ^M error.

6 min read
BasicsNov 2, 2026

What are stdout and stderr — and why errors don't land in your log file

What are stdout and stderr in plain words: every program's two outputs, how > and 2>&1 work, why order matters, and why Python logs in Docker show up late.

5 min read
BasicsNov 2, 2026

What is an exit code — and why CI can be green while tests fail

What is a program exit code in plain words: what 0, 1, 127, 130 and 137 mean, how to check it with echo $? and why a single pipe | can break your CI.

5 min read