Mac: Clear Terminal's Command History

From SolverBase.com
Jump to: navigation, search

Problem

  • How to delete all commands I've ever used in the Mac Terminal?
  • System: OS X
  • Devices: Mac, MacBook Air, MacBook Pro, iMac, Mac mini

Solution

  • Open the terminal and then type the following command:
 history -c
  • Then press Enter

Mac Terminal: history -c