Think of keyboard shortcuts in Windows Command Prompt (cmd) like speed-dial buttons on your phone. You can dial every digit manually each time, or you can press one key and let the computer finish the work for you.

Even if you only open Command Prompt once in a while, learning four or five tiny shortcuts will save you from re-typing long folder names and fixing typos.

1. Let Tab Finish Long Names for You

Never type a long folder name letter by letter. Type the first two or three letters and press the Tab key—Windows will automatically fill in the rest!

:: Type "cd Doc" and press Tab -> becomes "cd Documents"
cd Doc

If there are multiple folders starting with "Doc", keep pressing Tab to cycle through them one by one.

2. Recall Previous Commands with Up Arrow and F7

Made a small typo or want to run the same command again? Press the Up Arrow (↑) key to bring back your last command. Want to see a neat pop-up list of your recent commands? Press F7 and pick one with the arrow keys.

3. Clear Clutter and Stop Runaway Commands

  • cls + Enter: Wipes the screen clean like a fresh whiteboard (your files are untouched).
  • Ctrl + C: Politely tells a running command to stop right now if it is taking too long.
  • Ctrl + V: Pastes text you copied from a web browser directly into Command Prompt.

3 Things to Remember

  • Use Tab: Auto-completes folder and file names so you avoid typos.
  • Use Up Arrow or F7: Reuses past commands without retyping.
  • Use cls and Ctrl + C: Quickly clean the screen or stop a running command safely.