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

iCeFuSiOn

macrumors 6502a
Original poster
Hey guys and gals,

Do any of you know how I can go about clearing out previous Terminal commands? That way when I tap the up arrow on my keyboard, the last command isn't shown?

Thanks!
 
I'm not sure. Why would you want this I must ask. I find it very useful.
Just curious, that's all.

EDIT: Just tried "history clear" but it wouldn't take it, so I did a quick search on the History command itself and apparently, it's history -c. Thank you ajx22 for leading me in the right direction. 🙂
 
😕 ~ not at a Mac @ present...

if not the above - try:

history -c

------it's standard Unix commands in terminal...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.