====================== zsh keyboard shortcuts ====================== First published at 9/21/2022 on https://defkey.com/zsh-z-shell-shortcuts The Z shell (Zsh) is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting. The software was initially released in 1990. zsh has 25 shortcuts and we have listed all of them below. Navigation ---------- Ctrl + A Move the cursor to the beginning of the line Ctrl + E Move the cursor to the end of the line Alt + B Move the cursor one word backward Alt + F Move the cursor one word forward Left arrow Move the cursor one character backward Right arrow Move the cursor one character forward Deletion -------- Ctrl + U Delete the current line Ctrl + K Delete from the cursor to the end of the line Ctrl + W Delete one word backward Ctrl + D Delete one character forward Backspace Delete one character backward Ctrl + L Clear the screen Undo ---- Ctrl + _ Undo the last change Process and Shell ----------------- Ctrl + C Terminate the running foreground process Ctrl + Z Suspend the running foreground process Ctrl + D Exit current shell History ------- Ctrl + R Search the command history Up arrow Recall the previous command in history Down arrow Recall the next command in history Ctrl + G Escape from command search mode ! then ! Execute the last typed command ! then P then W Execute the last command in history that begins with pw Auto-completion --------------- Tab Auto-complete the typed command Tab then Tab Show list of commands Tab then Tab then Tab. Cycle through matched commands Last modified on(UTC): Wednesday, September 21, 2022 Defkey © All rights reserved.