How to clear previous terminal commands?

Discussion in 'macOS' started by iCeFuSiOn, Feb 23, 2008.

  1. iCeFuSiOn macrumors 6502a

    Joined:
    Jul 18, 2007
    #1
    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!
     
  2. aaronw1986 macrumors 68030

    Joined:
    Oct 31, 2006
    #2
    I'm not sure. Why would you want this I must ask. I find it very useful.
     
  3. ajx22 macrumors regular

    Joined:
    Jan 25, 2008
    Location:
    Honolulu (Hawai'i Kai), Hawai'i
  4. iCeFuSiOn thread starter macrumors 6502a

    Joined:
    Jul 18, 2007
    #4
    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. :)
     
  5. ajx22 macrumors regular

    Joined:
    Jan 25, 2008
    Location:
    Honolulu (Hawai'i Kai), Hawai'i
    #5
    :confused: ~ not at a Mac @ present...

    if not the above - try:

    history -c

    ------it's standard Unix commands in terminal...
     
  6. SC68Cal macrumors 68000

    Joined:
    Feb 23, 2006

Share This Page