How to clear Terminal command history

If you want to clear your Mac's terminal command history, run the following command:

history -c

Leave a Reply

Your email address will not be published. Required fields are marked *