Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

cli
command-line
shortcuts

What are useful command-line interface(CLI) shortcuts?

Umme Ammara

CLI stands for Command-Line Interface, which accepts text inputs to run operating systems commands. In recent years, GUI (Graphical User Interface) has replaced CLI to a great extent. However, CLI is still widely used by software developers to configure and install the software, etc. For this purpose, some useful CLI shortcuts come in handy.

CLI Shortcuts



TAB

Autocompletes commands, functions, and filenames, etc. 

CTRL+A / HOME

Moves the cursor to the beginning of the line.

CTRL+E / END

Moves the cursor to the end of the line.

CTRL+C

Aborts the program that the user wants to interrupt.

CTRL+L

Clears the terminal screen.

CTRL+ALT+D

Minimizes all the terminal screens to show the desktop.

CTRL+S

Stops screens output.

CTRL+Q

Resumes screen output.

CTRL+R

Recalls the last command by matching the characters provided by the user.

CTRL+B

Moves the cursor left by one character.

CTRL+F

Moves the cursor right by one character.

CTRL+G

Lists the expansion of the current word.

Some useful keyboard shortcuts specific to editing text include the following:



CTRL+U

Cuts all the characters typed on the terminal.

CTRL+H

Deletes one character to the left of the cursor.

CTRL+D

Deletes one character to the right of the cursor.

CTRL+W

Cuts one word to the left of the cursor.

ALT+W

Cuts one word to the right of the cursor.

CTRL+_

Undo the last edit.

RELATED TAGS

cli
command-line
shortcuts

CONTRIBUTOR

Umme Ammara
Copyright ©2022 Educative, Inc. All rights reserved
RELATED COURSES

View all Courses

Keep Exploring