You can clear all commands in the terminal on your Mac by hard resetting it. We have provided the steps to hard reset the terminal on Mac above in this article.