Ten Terminal Shortcuts in Bash and Zsh That Save Time Without Plugins
The article presents ten keyboard shortcuts and command features that work in both bash and zsh on macOS and Linux without requiring any plugins. Among them, Ctrl+R lets users search command history by typing part of an earlier command, while sudo !! reruns the previous command with elevated privileges. The guide also covers !$ for reusing the last argument, cd - for returning to the previous directory, and common line-editing keys such as Ctrl+A, Ctrl+E, and Ctrl+W. Further tips include pausing a running program with Ctrl+Z and resuming it with fg, plus creating custom aliases in shell configuration files.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in