Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Tech198

Cancelled
Original poster
Mar 21, 2011
15,915
2,151
Seems Apple broke history -c press Enter in Terminal in Sierra..

It only clears for current session only.. not across sessions as prior OS's (e.g Try closing Terminal afterwards, the re-open, you should find your history is still there.

Can anyone else verify if this is a problem as well?
 
Seems Apple broke history -c press Enter in Terminal in Sierra..

It only clears for current session only.. not across sessions as prior OS's (e.g Try closing Terminal afterwards, the re-open, you should find your history is still there.

Can anyone else verify if this is a problem as well?

You're right indeed. it does however remove history of itself across all sessions. Sure this isn't a deliberate change though? Have you read the man pages all the way through?
And is it really important? I mean, Unix compatibility is important, but clearing the history isn't exactly the most valuable command I can think of.
 
You're right indeed. it does however remove history of itself across all sessions. Sure this isn't a deliberate change though? Have you read the man pages all the way through?
And is it really important? I mean, Unix compatibility is important, but clearing the history isn't exactly the most valuable command I can think of.

And if that worried then rm ~/.bash_history in a shell will get rid of it anyways.
 
um.. after showing all hidden files .bash_history is there, and although rm command deletes history, the last commend is still showing... Maybe this is just how its done now..
 
um.. after showing all hidden files .bash_history is there, and although rm command deletes history, the last commend is still showing... Maybe this is just how its done now..

Of course the last command is shown it was not in the file when it was deleted only after it was run did it get appended to newly created file...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.