11 Must‑Know Linux Terminal Tricks to Supercharge Your Workflow
Discover a curated list of 11 powerful Linux terminal commands and shortcuts—including clipboard tricks, sudo shortcuts, background execution, scheduling, process management, file browsing, shutdown cancellation, and YouTube video downloading—to dramatically boost your productivity and streamline everyday tasks.
1. Everyday Command‑Line Shortcuts
Boost efficiency with these key bindings: CTRL+U – delete text before the cursor CTRL+K – delete from cursor to end of line CTRL+Y – paste previously deleted text CTRL+E – move cursor to end of line CTRL+A – move cursor to start of line ALT+F – jump forward one word ALT+B – jump backward one word ALT+Backspace – delete the previous word CTRL+W – delete the word after the cursor Shift+Insert – paste into the terminal
Example of fixing a typo:
sudo apt-get install programname2. sudo !! – Re‑run the Previous Command as Root
If a command fails with “Permission denied”, prepend it with sudo automatically using sudo !!: apt-get install ranger becomes
sudo apt-get install ranger3. Pause a Foreground Job and Return to It Later
Press CTRL+Z to suspend the current job, then type fg to bring it back to the foreground. This is handy when editing a file with nano and you need to run another command without exiting the editor.
4. Keep Commands Running After Logout with nohup
When connected via SSH, prepend a long‑running command with nohup and suffix it with & to detach it from the session:
nohup wget http://mirror.is.co.za/mirrors/linuxmint.com/iso/stable/17.1/linuxmint-17.1-cinnamon-64bit.iso &5. Schedule One‑Time Commands Using at
Use the at utility to run a command at a specific future time. Example:
at 10:38 PM Fri
cowsay 'hello'
CTRL+DThis schedules cowsay 'hello' for Friday at 22:38.
6. Enhance man Pages
Set a colorful pager: export PAGER=most (install most first).
Adjust line width: export MANWIDTH=80.
Open man pages in a browser: man -H (requires the BROWSER environment variable).
7. Interactive Process Management with htop
Install htop and run it to view and manage processes in a UI similar to Windows Task Manager. Use function keys to change sorting, and press F9 to kill a selected process.
htop8. Browse the Filesystem with ranger
After installing ranger, launch it with the same command. It presents a three‑pane, column‑based view where left/right arrows navigate directories.
ranger9. Cancel an Ongoing Shutdown
Use shutdown -c to cancel a pending shutdown (may fail if shutdown has already started). An alternative is to kill the shutdown process:
pkill shutdown10. Quickly Kill Hung Processes
Find processes with ps -ef or htop.
Use xkill to click‑and‑kill a graphical window.
Force a hard reboot without the power button using the magic SysRq sequence REISUB (hold Alt+SysRq and press R, E, I, S, U, B in order).
11. Download YouTube Videos with youtube-dl
Install youtube-dl from your package manager and download a video with: youtube-dl url-to-video Copy the video URL from the YouTube share link and paste it (e.g., with Shift+Insert).
Conclusion
These eleven tips cover essential Linux terminal shortcuts, command‑line utilities, and workflow‑enhancing tricks that can make everyday tasks faster and more reliable.
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.
ITPUB
Official ITPUB account sharing technical insights, community news, and exciting events.
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.
