Last Updated: February 25, 2016
·
1.852K
· encodes

Iterm 2 - go back one word - minitip

Ok this is a mini tip, but it's something so many developers don't know....

When using iterm2 on osx, you often need to go back and fix a typo in a long line of script, or you need to go back a few words....

ctrl+a - go to start of line
ctrl+e - go to the end of line
esc+f - go forward one word
est+b - go back one word.

The bottom 2 are particular useful as they allow you go back and fix typo's without using the long and tedious back buttons.

A lot of people will know this, but I've showed it to a few people this week and it blew their mind.

6 Responses
Add your response

I did not know this ...

over 1 year ago ·

Its a stupid shortcut in all fairness. But out the box people wouldnt know and the time spent holding the back key is mental.

over 1 year ago ·

there is no any relation of these features with iterm.

over 1 year ago ·

By the way there is a typo for the last one, it's also "esc" not "est".

over 1 year ago ·

You can position you cursor on the desired spot on the command line in Iterm2 with option + mouse click too.

over 1 year ago ·

@astropanic: Can't believe I didn't know that. THANK YOU.

over 1 year ago ·