Linux CLI Highlights Summary
Every highlight bullet from the 9 pages in this section, gathered on one page and grouped by the page it came from.
- A running Python process is just an ordinary Linux process - nothing about it is special to the kernel
- Activating a venv is a plain shell operation - it mutates PATH, nothing more
- signal.signal(SIGTERM, handler) in your app code and kill -15 on the shell are the same event, seen from two sides
- multiprocessing spawns real OS child processes because of the GIL - threading does not
- Shell tools show ground truth (RSS, open sockets, real PIDs) that app-level metrics can misreport or omit entirely
- ls -la, chmod, chown for permissions debugging
- systemctl status for service health on VMs
- df and du find disk pressure before deploy fails
- journalctl tails Python service logs under systemd
- Never chmod 777 - use group roles and ACLs
- rg respects .gitignore - faster repo search than grep -R
- find with -mtime locates stale log and cache files
- sed for in-place edits only with backup on servers
- awk columns JSON-ish logs when jq unavailable
- Scope searches to project dir - never grep from /
- uv sync creates reproducible .venv from lockfile
- pipx installs CLI tools isolated from project deps
- python -m module runs package entrypoints correctly
- shebang #!/usr/bin/env python3 for portable scripts
- Never sudo pip install into system Python
- Pipes connect stdout to stdin without temp files
- jq parses JSON logs - essential for structured logging
- sort, uniq, cut, wc compose quick analytics
- set -o pipefail catches errors in middle of pipeline
- Use Python pandas for heavy transforms - shell for ops one-liners
- ps aux and pgrep locate Python worker PIDs
- SIGTERM before SIGKILL for graceful FastAPI shutdown
- htop shows CPU per Gunicorn/uvicorn worker
- nohup only for quick tests - use systemd in prod
- ulimit -n for high connection APIs
- Ed25519 SSH keys with passphrase and ssh-agent
- tmux persists sessions across disconnects
- Local port forward accesses private RDS from laptop
- ProxyJump for bastion access to prod subnets
- Never copy prod private keys to laptops
- Aliases shorten git, uv, and docker commands
- Functions wrap multi-step deploy smoke tests
- history grep recovers forgotten one-liners
- fzf fuzzy-finds branches and log greps
- Keep scripts in bin/ when aliases grow logic
- SIGTERM before SIGKILL for Python API shutdown
- jq on JSON logs instead of blind grep
- rg in repos; scoped find on servers
- set -euo pipefail on every ops script
- uv sync --frozen in deploy scripts not pip install
3730363230327c3136376f6967637c6f692e73656469756765646f63
Revisado por Chris St. John·Última actualización: 31 jul 2026