I'm trying to clear the history of commands that have been run on Terminal, I found an article which said I can do it with
However, I am still able to see the previous commands that I've ran by pressing the up arrow
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
An easy way to accomplish this is to close all terminal windows, and then open a single new terminal window, where you run:
You'll need to close the terminal and open it again. Now when you press arrow up, you'll only see the rm command, and not earlier commands.
So what you have to do is:
Hope this helps!