🧘♂️ Terminal Dojo: Practice
Run calm, repeatable reps that build command-line confidence without risking your system.
Navigation + awareness
- Jump to recent directories with pushd/popd or a fuzzy finder.
- Preview where a command will act (pwd, ls -la, git status) before running changes.
- Use tab-completion and history search to avoid typos.
Safety guardrails
Rehearse protective aliases and flags until they are automatic.
- Dry run with
echoor-nflags before destructive commands. - Use
ripgrepto confirm matches before piping toxargsorsed. - Practice
set -euo pipefailin a scratch script and read the failure output.
# Try me in your scratch shell
alias rm='rm -i'
alias gs='git status -sb'
alias ..='cd ..'
alias f='rg --files'
alias rm='rm -i'
alias gs='git status -sb'
alias ..='cd ..'
alias f='rg --files'
Pipelines and previews
Build a habit of seeing output before acting.
- Search for a string with
rg, preview the matches, then redirect them to a file. - Pipe the same search into
lessand intofzfto pick one result. - Transform sample text with
sed/awk, then rerun with backup files to stay safe.
Keep a dedicated practice directory (e.g., ~/dojo) so every rep is safe to repeat and reset.