Clear! (clear your terminal screen)

Discussion in 'Beginner Tutorials' started by Rob, Jul 20, 2013.

  1. Rob

    Rob Administrator Staff Member

    Joined:
    Oct 27, 2011
    Messages:
    608
    Likes Received:
    271
    When you're typing a lot in a terminal and want to clear the screen quickly, you can do so easily a couple different ways.

    The one most people know about:
    Code:
    clear
    Yeah, simply type 'clear'.

    The one you'll use a lot more:
    Code:
    ctrl + l
    (hit the ctrl key, then a lowercase L)

    It doesn't make everything go away, you can actually see everything if you scroll up, but its very handy and I can't tell you how many times I use it each day.

    (really - I can't tell you, because when you type 'clear' you'll see it in your history, but if you use ctrl-l, it doesn't make it into history)

     
    Jay S, Khachouk, Toopz and 8 others like this.
  2. Primit1v3

    Primit1v3 Member

    Joined:
    Jul 19, 2013
    Messages:
    37
    Likes Received:
    9
  3. Technofhilia

    Technofhilia New Member

    Joined:
    Jul 12, 2013
    Messages:
    7
    Likes Received:
    7
    You can even use reset

    Sent from my Nexus 4
     
    Impossible likes this.
  4. xiongfang

    xiongfang New Member

    Joined:
    Aug 14, 2013
    Messages:
    1
    Likes Received:
    0
  5. Impossible

    Impossible New Member

    Joined:
    Aug 14, 2013
    Messages:
    3
    Likes Received:
    1
    so its: 'clear' 'ctrl + l' 'reset'
    I'm loving these tutorials. I was thinking "wow, it really clears it" but not technically, like you mentioned "It doesn't make everything go away, you can actually see everything if you scroll up" anyways thanks!
     
  6. Abhishek Solanki

    Abhishek Solanki New Member

    Joined:
    Oct 6, 2013
    Messages:
    3
    Likes Received:
    1
  7. BoZhang

    BoZhang New Member

    Joined:
    Oct 16, 2013
    Messages:
    1
    Likes Received:
    0
    It ' useful for me. Thanks a lot.;)
     
  8. Collinux

    Collinux New Member

    Joined:
    Mar 3, 2014
    Messages:
    4
    Likes Received:
    0
    A nice little trick I never knew. Thank you :)
     
  9. nicky123

    nicky123 New Member

    Joined:
    Nov 16, 2014
    Messages:
    1
    Likes Received:
    0
    i want to clear the screen during the execution of my c/c++ program...how can i do that?
    Thanks in advance....
     

    Attached Files:

  10. 1412

    1412 New Member

    Joined:
    Nov 13, 2014
    Messages:
    3
    Likes Received:
    0
    "ctrl+l" ! I never knew it. A handy trick, thank you : )
     
  11. ZHANG/ZHIKUN

    ZHANG/ZHIKUN New Member

    Joined:
    Aug 22, 2014
    Messages:
    27
    Likes Received:
    2
    simple but instructive information. thanks.
     
  12. Sanjay Dubey

    Sanjay Dubey New Member

    Joined:
    Jun 11, 2015
    Messages:
    1
    Likes Received:
    0
    Simple, Thanks :)
     
  13. Toopz

    Toopz New Member

    Joined:
    Jun 14, 2015
    Messages:
    3
    Likes Received:
    0
    technically it does with "reset" :)
     
  14. Toopz

    Toopz New Member

    Joined:
    Jun 14, 2015
    Messages:
    3
    Likes Received:
    0
    "Ctrl + l" FTW!
    Thanks Sir! :)
     
  15. Toopz

    Toopz New Member

    Joined:
    Jun 14, 2015
    Messages:
    3
    Likes Received:
    0
    oh yes you can! but just so the others know... :)
    'reset' unlike 'clear' or 'ctrl + l', completely clears your terminal and re-initializes it. setting your terminal pretty much like the first time you opened it, can't scroll up, nothing up there. But if it helps, you can still recall the commands you typed in earlier. :)
     

Share This Page