Essential Linux Command‑Line Shortcuts, Tools, and Tips
This article compiles a practical set of Linux terminal shortcuts, utilities, and techniques—including editing key bindings, sudo shortcuts, background job control, nohup, at scheduling, man page customization, htop, ranger, shutdown cancellation, process killing, REISUB, and youtube‑dl—to boost productivity for developers and system administrators.
This article presents a curated collection of Linux command‑line shortcuts, tools, and tricks designed to improve workflow efficiency for developers and system administrators.
Common editing shortcuts such as CTRL+U, CTRL+K, CTRL+Y, CTRL+E, CTRL+A, ALT+F, ALT+B, ALT+Backspace, CTRL+W and Shift+Insert are listed, with an example of fixing a typo in sudo apt-get install programname by moving the cursor with ALT+B and inserting the missing character.
The sudo !! shortcut reruns the previous command with super‑user privileges, turning apt-get install ranger into sudo apt-get install ranger, accompanied by a strong warning about its potential misuse.
Job control is covered: CTRL+Z pauses a foreground process, fg resumes it, and nohup keeps a command running after an SSH logout, e.g., nohup wget http://example.com/file.iso &.
Scheduling one‑time commands is demonstrated with the at utility, showing how to run cowsay 'hello' at a specific time.
Man‑page customization examples include setting a pager ( export PAGER=most), adjusting line width ( export MANWIDTH=80), and opening a man page in a browser ( man -H <command>) after defining $BROWSER.
Process monitoring and management are illustrated with htop, which provides an interactive view similar to a graphical task manager.
File‑system navigation is enhanced by the ranger terminal file manager, launched with ranger and operated via arrow keys.
Shutdown cancellation commands ( shutdown -c, pkill shutdown) and methods for terminating hung processes ( ps -ef, htop, xkill, REISUB) are provided.
Finally, downloading YouTube videos offline is covered using youtube-dl url-to-video, with instructions on obtaining the video URL and pasting it via Shift+Insert.
The author hopes readers find at least one surprising and useful tip among the eleven presented.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Laravel Tech Community
Specializing in Laravel development, we continuously publish fresh content and grow alongside the elegant, stable Laravel framework.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
