All Modules / Module 4 / Lesson 3 of 4

Jumping to start/end instantly

4 minute read

The Problem

You've typed a long command. You need to change something at the beginning. So you hold the left arrow key... and wait... and wait. Ten seconds later, you're finally there.

This is one of the biggest time-wasters in Terminal. And it's completely unnecessary.

Two Shortcuts That Change Everything

There are exactly two keyboard shortcuts you need to remember:

Ctrl + A

Jump to Start

Moves your cursor to the very beginning of the line. Instant.

Ctrl + E

Jump to End

Moves your cursor to the very end of the line. Instant.

Memory trick: A comes at the stArt of the alphabet. E comes at the End.

See It In Action

Click the buttons below to see how the cursor jumps instantly:

Interactive Demo
~ curl -X POST https://api.example.com/upload -H "Auth: abc123"

Click the buttons to see the cursor move instantly

Try It Yourself

Open your Terminal and try these shortcuts right now. Type any command, then:

1

Type this command (or any long command):

echo "This is a test command to practice navigation shortcuts"
2

Press Ctrl + A to jump to the start

3

Press Ctrl + E to jump to the end

4

Repeat until it feels natural (about 5-10 times)

Key Takeaway

Never hold the arrow key to navigate a command. Ctrl + A gets you to the start. Ctrl + E gets you to the end. That's it.