2025-10-23    2026-01-01    168 字  1 分钟

Here’s a cheat sheet of “10 Terminal Tricks Most Developers Don’t Know (But Should)” by Rishabh Agarwal: Level Up Coding

🔍 Command History & Navigation

Shortcut / CommandDescription
Ctrl + RReverse-search previously used commands from history.
!!Re-run the last executed command.
cd -Switch back to the previous directory.

🧭 Cursor Movement

ShortcutDescription
Ctrl + AJump to the start of the current command line.
Ctrl + EJump to the end of the current command line.
Alt + ← / →Move the cursor word-by-word (instead of character-by-character).

✂️ Editing Commands

ShortcutDescription
Ctrl + UDelete from cursor to the start of the line.
Ctrl + KDelete from cursor to the end of the line.

⚡ Autocomplete & Suggestions

ShortcutDescription
<Tab> <Tab>Show all possible command or path completions.

🧹 Utility

ShortcutDescription
Ctrl + LClear the terminal screen instantly.