To Clear Terminal History on a Mac, Follow the Steps Below

  1. Open the Terminal app
  2. Type the following within the Terminal app to clear specific history
    • Clear Terminal’s Command History (accessed by pressing the “up” arrow key)

      history -c

    • Clear Terminal’s buffer history (display of past executions)

      [Apple Key] + K