How do you clear terminal history mac big sur

I have run a terminal command that did not work, so I would like to clear my terminal history so I might try again.

iMac 27″, macOS 11.2

Posted on Mar 21, 2021 8:17 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 21, 2021 9:29 PM

That’s not what clearing the history does.

You can repeat the command as many times as you’d like, but it likely will not work any of those times, either. If it failed, you either didn’t type it correctly or provided incorrect arguments.

Clearing the history will just remove the list of commands you’ve run. It won’t make the incorrectly entered command work.

4 replies
Question marked as Top-ranking reply

Mar 21, 2021 9:29 PM in response to OldCant

That’s not what clearing the history does.

You can repeat the command as many times as you’d like, but it likely will not work any of those times, either. If it failed, you either didn’t type it correctly or provided incorrect arguments.

Clearing the history will just remove the list of commands you’ve run. It won’t make the incorrectly entered command work.

Mar 21, 2021 9:54 PM in response to Barney-15E

Thank you so much for your reply Barney-15E.


I was trying to set my computer up to Backup and Restore my iPhone to an external drive.


As I am new to using terminal, I was hoping that by deleting the commands I made, I would restore my Mac back to how it was before I made the commands and I could re-enter the commands again and do it right.


The commands I made were to change a file name; make 2 new files; and a shortcut file to direct the backup to an external drive.


I hope you understand my inexperienced IT language.

Once again, thank you for your offer of support.

Kind regards

Gary

Mar 22, 2021 5:56 AM in response to Barney-15E

Once again thank you Barney-15E

Luckily I haven't actually deleted anything, only added a folder and a shortcut.

I believe if I delete these additional folders, that would remove the symbolic link.

I will give it a go


And yes, I don't normally go outside Apples suggestions, but I just don't have enough space to back up my iPhone on my 2020 Mac and can't afford unlimited iCloud.


Thank you again Barney-15E, you have been very helpful

Kind regards

Gary

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do you clear terminal history mac big sur

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.