Navigation
cd -Go to previous directory
cd ~2Jump to 2nd entry in dir stack
dirs -vShow directory stack with indices
pushd / popdPush / pop directory stack
z <name>Jump to frecent directory (zoxide)
History
Ctrl+RFuzzy search history
!!Repeat last command
!$Last argument of previous command
!*All arguments of previous command
history 1Show full history from the start
Editing & Shortcuts
Ctrl+A / Ctrl+EMove to start / end of line
Ctrl+WDelete word before cursor
Ctrl+UDelete to start of line
Ctrl+LClear screen
Alt+.Insert last argument of prev command
Globbing & Expansion
**/*.jsRecursive glob (all .js files)
ls *(.) List only regular files
ls *(/)List only directories
{a,b,c}.txtBrace expansion
echo $((2 ** 10))Arithmetic expansion