Skip to main content

Bash Terminal

Shortcuts​

Clear the screen​

ctrl + l - Clear the screen and bash history is retained.

Clear to the BEGINNING​

ctrl + u - Clear the line.

Clear to the END​

ctrl + k - Clear the text from the cursor position to the END of the line.

Clear one word backwards​

ctrl + w - Deletes a word from the cursor position backwards.

Clear one word forward​

alt + d - Deletes a word from the cursor position forward.

Reference​

Bash Keyboard Shortcuts
Terminal Shortcuts