MacOS – Can home and end keys be mapped when using Terminal

command linekeybindingskeyboardmacosterminal

The Home and End keys on a MacBook Pro can be emulated with Fn + or fFn + . Or when certain settings are changed, with the ⌘ Command key instead of Fn.

None of these works in Terminal.

As I frequently need to go to the beginning or end of the line and would also like to jump forwards or backwards by word.

How can I jump around on a line in Terminal?

Best Answer

Use control+a for HOME and control+e for END in Terminal.

Also use esc+f to move to the beginning of the next word and esc+b to move to the beginning of the current word. (you Must be careful about current and next)