lsof: The Tool That Shows You Everything
Master lsof to find port conflicts, trace deleted files eating disk, and debug network connections.
All the articles with the tag "cli".
Master lsof to find port conflicts, trace deleted files eating disk, and debug network connections.
Schedule one-off Linux tasks with `at` instead of cron. Learn syntax, queue management, batch jobs, and when to use it for delayed reboots and reminders.
By default bash history is lost across multiple terminal sessions. Fix it with HISTAPPEND and PROMPT_COMMAND so nothing gets overwritten.
echo is convenient but inconsistent across systems; printf is portable and precise, know when to use each and avoid the gotchas.
grep is more powerful than you think, regex patterns, context flags, recursive search, and piping tricks that save hours of log digging.
The Linux commands every sysadmin reaches for daily, file ops, process management, networking, and text manipulation you can't live without.
Move Docker images between hosts without a registry using docker save and docker load, air-gapped deployments made simple.
Use docker cp to move files between running containers and your host machine, no volumes needed for one-off file transfers.
Run multiple commands in one docker exec call by piping a heredoc to the container shell, chain dependent steps and skip repeated container roundtrips.
xargs turns stdin into arguments, build complex pipelines, run parallel jobs, and handle filenames with spaces without breaking everything.
Shell globbing breaks inside docker exec because of how args are parsed, here's how to pass wildcards and asterisks correctly.
vim survival guide, modes, motions, search and replace, macros, splits, and the config tweaks that make it actually enjoyable to use.