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.
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.
Aborts the program that the user wants to interrupt.
Clears the terminal screen.
Minimizes all the terminal screens to show the desktop.
Stops screens output.
Resumes screen output.
Recalls the last command by matching the characters provided by the user.
Moves the cursor left by one character.
Moves the cursor right by one character.
Lists the expansion of the current word.
Some useful keyboard shortcuts specific to editing text include the following:
Cuts all the characters typed on the terminal.
Deletes one character to the left of the cursor.
Deletes one character to the right of the cursor.
Cuts one word to the left of the cursor.
Cuts one word to the right of the cursor.
Undo the last edit.
View all Courses