Skills › 💻 Terminal & git

Jump to the start or end of a command line

Typo at the start of a long command? Don't hold the arrow key. Two keys take you there instantly.

⏱ 15s

  1. Type or recall a long command, but don't press Enter.
  2. Press Ctrl+A to jump to the start of the line.
  3. Press Ctrl+E to jump to the end.
  4. Press Alt+B and Alt+F to move back and forward one word at a time.

Tip: Home and End may do the same on some keyboards. Ctrl+A and Ctrl+E work even where they don't.

Try it now: Press the up arrow to recall your last command, then jump between its start and end with Ctrl+A and Ctrl+E.

Practice in the feed →

Next crumbs

Sources