Advanced Terminal Commands

Moderators: wizard, Forum moderators

Locked
User avatar
rockedge
Site Admin
Posts: 5710
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 1988 times
Been thanked: 2097 times
Contact:

Advanced Terminal Commands

Post by rockedge »

This is an advanced topic for users working with a terminal application.

Hotkeys are key sequences that execute an action. Example: if the hotkeys are: ctrl + l then hold down the ctrl key and press the l key

Examples of commands:
ctrl + l Clears the Screen

This is a list of some commonly used hotkeys.

Editing

ctrl + w or alt + backspace Delete backward to the beginning of the current word
ctrl + d Delete the character after the current cursor position or exit shell
ctrl + u Delete to the beginning of the line
ctrl + k Delete to the end of the line
ctrl + y Paste whatever was cut by the last cut command
ctrl + shift + - Undo last action

Cursor

ctrl + a Go to beginning of command line
ctrl + e Go to end of command line
ctrl + b Move back one character
alt + b or ctrl + left Move cursor back one word
alt + f or ctrl + right Move cursor forward one word
ctrl + f Move forward one character
ctrl + x ctrl + x Toggle between current cursor position and beginning of the line (Bash)

Processes

ctrl + c Kill the currently running process
ctrl + z Puts current process into a suspended background process
alt + t Swap current word with previous
ctrl + t Swap the last two characters before the cursor

Control

ctrl + s Pause terminal output
ctrl + q Resume terminal output after it was paused

History

ctrl + r Search command history
ctrl + n or down arrow View next command in the history
ctrl + p or up arrow View previous command in the history

Need more help? Join the forum and post your questions in Beginners Help.

Locked

Return to “Getting Started and System Requirements”