Pneak into the wonderful world of shortcuts in the Linux terminal
quality 7/10 · good
0 net
Tags
Pneak into the wonderful world of shortcuts in the Linux terminal | by Reek Elderblod | in InfoSec Write-ups - Freedium
Milestone: 20GB Reached
We’ve reached 20GB of stored data — thank you for helping us grow!
Patreon
Ko-fi
Liberapay
Close
< Go to the original
Pneak into the wonderful world of shortcuts in the Linux terminal
Introduction
Reek Elderblod
Follow
InfoSec Write-ups
·
~3 min read
·
October 27, 2024 (Updated: October 28, 2024)
·
Free: No
Introduction
Hello everyone! It's Reek, and today, I'm going to introduce you to the wonderful world of terminal shortcuts . These shortcuts will make your much smoother and more efficient., helping you tackle tedious tasks in an instant!
General Shortcuts
Ctrl + Shift + E : Scrolls down (only in certain terminal emulators).
Ctrl + A : Move the cursor to the beginning of the line.
Ctrl + E : Move the cursor to the end of the line.
Ctrl + U : Delete the line before the cursor.
Ctrl + K : Delete the line after the cursor.
Ctrl + W : Delete the word before the cursor.
Ctrl + Y : Paste (yank) the text that was cut by Ctrl + U , Ctrl + K , or Ctrl + W .
Ctrl + L : Clear the screen (same as the clear command).
Ctrl + R : Reverse search for a command from your command history.
Ctrl + C : Terminate the running command.
Ctrl + D : Log out or exit the terminal (when at an empty prompt).
Ctrl + Z : Suspend the current process and move it to the background.
Ctrl + X + E : Open the current command line in a text editor (usually the one set in $EDITOR ).
Navigating Commands
Alt + B : Move the cursor back one word.
Alt + F : Move the cursor forward one word.
Ctrl + P : Show the previous command (similar to the up arrow key).
Ctrl + N : Show the next command (similar to the down arrow key).
Tab : Auto-complete the command or file name.
Managing Background Processes
Ctrl + Shift + N : Open a new terminal window (varies based on the terminal emulator).
Ctrl + Shift + T : Open a new tab (varies based on the terminal emulator).
Ctrl + Shift + C : Copy selected text.
Ctrl + Shift + V : Paste text from the clipboard.
Working with Files
Ctrl + Shift + Page Up/Page Down : Scroll through the terminal buffer.
Alt + . : Insert the last argument of the previous command.
Conclusion
By using this shortcut I am sure your workflow will be smooth and in the start, it may be time-consuming but believe me it is better to invest the time now to learn these valuable skills!
While learning this shortcut is essential. it's crucial to be aware of the potential pitfalls of using Linux commands if you want to avoid any mistake that will ruin your system (or even your career) check out my article 10 Linux Commands That Could Ruin Your System and Your Career It's a must-read for anyone looking to navigate the terminal safely!
Connect with Me
I'd love to hear how these tips are helping you or if you have any favorite shortcuts to share. Feel free to reach out to me on social media!
Twitter: @ReekElderblood
LinkedIn: Reek Elderblood
Let's explore the terminal together!
#linux #cybersecurity #infosec #terminal #tips-and-tricks
Reporting a Problem
Sometimes we have problems displaying some Medium posts.
If you have a problem that some images aren't loading - try using VPN. Probably you have problem with
access to Medium CDN (or fucking Cloudflare's bot detection algorithms are blocking you).