Command line keyboard shortcuts

Cycle through earlier commands

[Up Arrow]

Clear the terminal screen (Mac OSX)

CMD + k

Go to the beginning of the line

CTRL + a

Go to the end of the line

CTRL + e

Delete word to the left of the cursor

CTRL + w

Delete all characters to the right of the cursor

CTRL + k

Load interactive prompt to search earlier commands

CTRL + r

Exit interactive prompt mode

CTRL + g

Last updated