Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 519 Bytes

bash.md

File metadata and controls

38 lines (29 loc) · 519 Bytes

bash / zsh cheatsheet

Navigation:

# Go to beginning of line.
Ctrl + a

# Go to end of line.
Ctrl + e

# Move cursor one word forward.
Alt + f

# Move cursor one word backward.
Alt + b

# Previous command (in history)
Ctrl + p

# Next command (in history)
Ctrl + n

Editing:

# Delete word after cursor
Alt + d

# Clear the screen.
Ctrl + l

Search command history:

# Search previous commands.  
# Running it again while searching will jump to the previous matching result
Ctrl + r