Skip to the content.

Basic Commands and Command Line Shortcuts That Every Linux Users Should Know

Here are the commands that can be used through command line windows such as Terminal, Console, or any terminal program under X-windows (x-term, rxvt, aterm, etc.).

Note that some of these key commands are specific to command line windows and may behave differently depending on your window manager under X.

Terminal, also known as GNOME Terminal, is the command line tool of the GNOME desktop environment.

Software such as GNOME Terminal, which connects to the command line through a window manager, is generally referred to as “terminal.” These are also termed “console, shell, terminal emulator.”

Console is a classical terminal emulator developed as part of the KDE project. Konsole is distinguished from other terminals by being almost completely rewritten (not based on xterm or rxvt).

Komut Satırı Kısayol Tuşları

Komut Description
Ctrl + Alt + F1 Switch to the next terminal.
Ctrl + Alt + T Open a terminal window.
Ctrl + Shift + W Close the terminal window.
Ctrl + A Move the cursor to the beginning of the command line without erasing text.
Ctrl + E Move the cursor to the end of the command line without erasing text.
Alt + F Move the cursor to the end of the word.
Alt + B Move the cursor to the beginning of the word.
Ctrl + F Move the cursor forward by one character.
Ctrl + B Move the cursor backward by one character.
Ctrl + U Cut text from the cursor position to the beginning of the line (add to clipboard).
Ctrl + Y Paste the last cut text at the cursor position.
Ctrl + W Delete text before the cursor up to the beginning of the word, without affecting other words.
Ctrl + K Cut text from the cursor position to the end of the line (add to clipboard).
Alt + T Swap the two words before the cursor if the cursor is on a space, or the word under the cursor with the word before it.
Alt + L Convert all characters after the cursor to lowercase.
Alt + U Convert all characters after the cursor to uppercase.
Alt + C Capitalize the letter under the cursor and move the cursor to the end of the word.
Alt + D Cut text from the cursor position to the end of the word.
Alt + . Insert the last word of the previous command.
Ctrl + T Swap the two characters before the cursor.
Ctrl + R Search for previously used commands.
Ctrl + G Exit search mode without selecting a command.
Ctrl + J Copy a command found with Ctrl + R without executing it, allowing modifications.
Alt + R Undo changes to a command found with Ctrl + R; pressing again will redo the changes.
Ctrl + P Recall previous commands in the command history (same as the up arrow key).
Ctrl + N Move forward in the command history (same as the down arrow key).
Ctrl + L Clear the screen (same as the clear command).
Ctrl + Alt + F7 Return to the X session previously exited with Ctrl + Alt + F1.
Ctrl + Alt + Del Reboot the system (like the shutdown command). Use this instead of the reset button.
Ctrl + C Terminate the current command (usually for simple commands).
Ctrl + D Send EOF (end-of-file) if a command is accepting input; logout if at the prompt. Do not press twice (logs out of the current shell session).
Ctrl + S Stop the output of a long-running command (command continues to run).
Ctrl + Q Resume output after stopping it with Ctrl + S.
Ctrl + Z Suspend the current command; it can be resumed in the background with bg or in the foreground with fg. Use jobs to view suspended programs.
Shift + Insert Paste text from the clipboard.

Basic Linux Commands

Important and essential Linux commands to remember.

System Commands

Hardware Commands

Users

File Commands

Process Commands

Permissions

Network Commands

Archiving Commands

Installation (Debian)

Compilation Commands

Basically all compilation operations are done through these commands.

Search Commands

SSH

File Transfer

Disc Usage

Index Commands

Bonus

These commands are just a sample of what can be done via the command line in a Linux environment. For further details, consult the man pages of each command.

Ref: Yakup Şeker - Medium