Command to clear terminal

Discussion in 'macOS' started by Stratoukos, Oct 5, 2010.

  1. Stratoukos macrumors member

    Joined:
    Jul 15, 2008
    #1
    Hi.

    Is there a command to clear the terminal screen that works like 'cls' on Windows? I know about 'clear', but clear just moves the prompt on the top of the screen, leaving the previous output visible if I scroll up.

    A friend suggested 'clear_console' (I think he's on debian) but I can't find it on OS X or MacPorts.

    Thanks.
     
  2. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
  3. SDub90 macrumors 6502a

    Joined:
    Nov 9, 2009
    Location:
    Long Island
  4. Hal Itosis macrumors 6502a

    Hal Itosis

    Joined:
    Feb 20, 2010
  5. Stratoukos thread starter macrumors member

    Joined:
    Jul 15, 2008
    #5
    Wow. That was fast. Thanks

    clear screen and history -c didn't work for me, but ⌘K did the job. Never thought to look through the menus for something like this.
     
  6. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
  7. mac2x macrumors 65816

    Joined:
    Sep 19, 2009
    #7
    ;)

     
  8. Hal Itosis macrumors 6502a

    Hal Itosis

    Joined:
    Feb 20, 2010
    #8
    Or ^L (control-L) ;)
     

Share This Page