Operations 11 min read

11 Must‑Know Linux Terminal Tricks to Boost Your Productivity

This article presents eleven practical Linux terminal techniques—including essential keyboard shortcuts, sudo shortcuts, background job handling, nohup, at scheduling, man page tweaks, htop, ranger, shutdown cancellation, process killing, and YouTube video downloading—to help users work faster and manage their systems more efficiently.

Java Backend Technology
Java Backend Technology
Java Backend Technology
11 Must‑Know Linux Terminal Tricks to Boost Your Productivity

1. Command‑line daily shortcuts

Useful key combinations such as CTRL+U (cut before cursor), CTRL+K (cut to end of line), CTRL+Y (paste), CTRL+E (move to line end), CTRL+A (move to line start), ALT+F / ALT+B (jump word forward/backward), ALT+Backspace (delete previous word), CTRL+W (cut next word), and Shift+Insert (paste into terminal). sudo apt-get install programname Correct the typo "intall" to "install" and edit the command using shortcuts like ALT+B to move the cursor.

2. sudo !! – repeat last command with sudo

If a command fails with “Permission denied”, prepend sudo automatically using sudo !!. Example: apt-get install ranger becomes

sudo apt-get install ranger

3. Pause and run commands in background

Use CTRL+Z to suspend a foreground job, then execute other commands. Return with fg. This is handy when editing a file with nano and you need to run another command without exiting.

4. Keep commands running after logout with nohup

Run long‑running tasks over SSH without being terminated when the session ends. Example:

nohup wget http://mirror.is.co.za/mirrors/linuxmint.com/iso/stable/17.1/linuxmint-17.1-cinnamon-64bit.iso &

5. Schedule commands with at

Execute a command at a specific time. Example:

at 10:38 PM Fri
cowsay 'hello'
CTRL+D

Use the at> prompt to enter the desired command.

6. Enhance man pages

Set export PAGER=most for colored output, adjust line width with export MANWIDTH=80, and open pages in a browser using man -H after defining $BROWSER.

7. View and manage processes with htop

Install htop for an interactive, color‑rich process viewer similar to Windows Task Manager. Launch simply with htop and use function keys to sort or kill processes.

8. Browse the file system with ranger

ranger

provides a terminal‑based, dual‑pane file manager. Navigate directories with arrow keys and consult its man page for additional shortcuts.

9. Cancel a pending shutdown

Use shutdown -c to abort a scheduled shutdown (if it hasn’t already started) or pkill shutdown to terminate the shutdown process.

10. Quickly kill hung processes

Find the offending process with ps -ef or htop, then kill it. For GUI‑based termination, xkill lets you click the window to kill its process. In critical situations, use the magic SysRq sequence REISUB (Alt+SysRq + R E I S U B) to safely reboot without the power button.

11. Download YouTube videos

Install youtube-dl via the package manager and download videos with: youtube-dl url-to-video Copy the video URL from the YouTube share link and paste it into the terminal (e.g., with Shift+Insert ).

Summary – These eleven tips provide practical shortcuts and tools for everyday Linux terminal use, helping you edit efficiently, manage processes, schedule tasks, and even download media.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

linuxproductivitySysadminBashterminalcommand-line
Java Backend Technology
Written by

Java Backend Technology

Focus on Java-related technologies: SSM, Spring ecosystem, microservices, MySQL, MyCat, clustering, distributed systems, middleware, Linux, networking, multithreading. Occasionally cover DevOps tools like Jenkins, Nexus, Docker, and ELK. Also share technical insights from time to time, committed to Java full-stack development!

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.