Skip to content

Latest commit

ย 

History

History
119 lines (95 loc) ยท 4.2 KB

File metadata and controls

119 lines (95 loc) ยท 4.2 KB

๐Ÿ–ฅ๏ธ Linux Keyboard Shortcuts Cheat Sheet

๐Ÿ“Œ Boost your productivity with these essential shortcuts!


โŒจ๏ธ General Shortcuts

๐Ÿ”  Shortcut ๐Ÿ”น Description
Ctrl + C ๐Ÿ›‘ Cancel/terminate the running process
Ctrl + D ๐Ÿšช Logout or send EOF (End Of File)
Ctrl + L ๐Ÿงน Clear the terminal screen
Ctrl + S ๐Ÿ›‘ Pause terminal output (freeze scrolling)
Ctrl + Q โ–ถ๏ธ Resume terminal output
Ctrl + Z ๐Ÿ’ค Suspend (background) current process
Ctrl + A โฌ…๏ธ Move cursor to the beginning of the line
Ctrl + E โžก๏ธ Move cursor to the end of the line
Ctrl + U โœ‚๏ธ Delete text from cursor to line start
Ctrl + K โœ‚๏ธ Delete text from cursor to line end
Ctrl + W โœ‚๏ธ Delete the word before the cursor
Ctrl + Y ๐Ÿ“‹ Paste (yank) the last deleted text
Ctrl + R ๐Ÿ” Reverse search command history
Ctrl + G โŒ Exit history search mode

๐Ÿ“‚ Terminal Navigation Shortcuts

๐Ÿ”  Shortcut ๐Ÿ”น Description
Alt + F โžก๏ธ Move forward one word
Alt + B โฌ…๏ธ Move backward one word
Alt + D โœ‚๏ธ Delete the word after the cursor
Alt + Backspace โœ‚๏ธ Delete the word before the cursor
Shift + Page Up โฌ†๏ธ Scroll up in the terminal
Shift + Page Down โฌ‡๏ธ Scroll down in the terminal

๐Ÿž๏ธ Window & Tab Management

๐Ÿ”  Shortcut ๐Ÿ”น Description
Ctrl + Shift + T ๐Ÿ“‘ Open a new terminal tab
Ctrl + Shift + W โŒ Close the current terminal tab
Ctrl + Shift + N ๐Ÿ†• Open a new terminal window
Alt + Tab ๐Ÿ”„ Switch between applications
Alt + Shift + Tab ๐Ÿ”„ Switch between apps (reverse order)
Super + Left โ—€๏ธ Snap window to the left
Super + Right โ–ถ๏ธ Snap window to the right
Super + Up ๐Ÿ”ผ Maximize the window
Super + Down ๐Ÿ”ฝ Minimize (or restore) the window

๐Ÿ”น Note: The โ€œSuperโ€ key is usually the Windows or Command key.


๐Ÿ“ File Manager Shortcuts (GNOME, KDE, etc.)

๐Ÿ”  Shortcut ๐Ÿ”น Description
Ctrl + N ๐Ÿ†• Open a new file manager window
Ctrl + T ๐Ÿ“‘ Open a new tab in the file manager
Ctrl + W โŒ Close the current tab or window
Ctrl + Shift + N ๐Ÿ“‚ Create a new folder
F2 โœ๏ธ Rename the selected file/folder
Delete ๐Ÿ—‘๏ธ Move file/folder to Trash
Shift + Delete โš ๏ธ Permanently delete the file/folder
Ctrl + X โœ‚๏ธ Cut the selected file/folder
Ctrl + C ๐Ÿ“‹ Copy the selected file/folder
Ctrl + V ๐Ÿ“ฅ Paste the file/folder
Ctrl + A โœ… Select all files/folders
Ctrl + Shift + T ๐Ÿ”„ Reopen the last closed tab (if supported)

๐Ÿ”น Note: Shortcuts may vary in different file managers like GNOME Files, Dolphin, Thunar.


๐ŸŒ Browser & Application Shortcuts

๐Ÿ”  Shortcut ๐Ÿ”น Description
Ctrl + T ๐Ÿ“‘ Open a new tab
Ctrl + W โŒ Close the current tab
Ctrl + Shift + T ๐Ÿ”„ Reopen the last closed tab
Ctrl + Tab โฉ Switch to the next tab
Ctrl + Shift + Tab โช Switch to the previous tab
Alt + F4 โŒ Close the active application

๐Ÿš€ Command-Line Shortcuts (Aliases)

You can create custom shortcuts for commands using aliases:

alias ll='ls -lah'   # Detailed file list
alias gs='git status'  # Git status shortcut
alias c='clear'  # Clear terminal

To make these permanent, add them to ~/.bashrc or ~/.zshrc and run:

source ~/.bashrc  # (or source ~/.zshrc)

๐Ÿ”— Creating File Shortcuts (Symlinks)

To create a shortcut (symbolic link) to a file or directory:

ln -s /path/to/original /path/to/shortcut

Example:

ln -s /var/www/html ~/myweb

This creates myweb as a shortcut to /var/www/html.


โšก