Differences Between nohup, disown, and & in Linux
nohup, disown, and & all keep processes running after logout — but they work differently. Here's which one to reach for and why.
All the articles with the tag "shell scripting".
nohup, disown, and & all keep processes running after logout — but they work differently. Here's which one to reach for and why.
Bash tricks that save keystrokes — history expansion, brace expansion, process substitution, and the shortcuts your fingers will thank you for.
By default bash history is lost across multiple terminal sessions. Fix it with HISTAPPEND and PROMPT_COMMAND so nothing gets overwritten.
Write bash scripts that don't silently fail — set -euo pipefail, error handling, input validation, and logging patterns for production scripts.
echo is convenient but inconsistent across systems; printf is portable and precise — know when to use each and avoid the gotchas.
Master bash for loops, while loops, and seq for sequential counting — iterate over files, ranges, and arrays without losing your mind.
Switch your default shell to zsh on Linux — why zsh beats bash, installation, Oh My Zsh setup, essential plugins, and the gotcha that still catches everyone.
Oh My Zsh had its moment. Here's the 2026 shell setup: Starship prompt, three killer plugins, and when to consider Fish or Nushell.
Learn systemd socket activation to start services on-demand, save RAM, and cut boot time. Includes .socket unit files, real examples, and testing with systemd-socket-activate.