Mac Terminal Page Down Home End Not Working | How to Fix Them

By default the Mac Terminal Shortcuts: Page Down, Page Up, Home and End keys do not work as you would expect them to. There is a very simple fix for this explained below:

  1. Open up the terminal
  2. Go to Preferences
  3. Go to the Settings Tab
  4. Go to the Keyboard Section
  5. Select the end key
  6. Click the Edit button
  7. Choose ‘send string to shell’ from the Action drop down menu
  8. Paste in this value: \033[4~
Here are the values for the commonly used shortcuts in the Mac terminal:
Key Action
Home \033[1~
End \033[4~
Page Up \033[5~
Page Down \033[6~
mac-terminal-shortcuts