Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: How do I clear screen in terminal

  1. #1
    Join Date
    Nov 2013
    Location
    Pennsylvania
    Beans
    22
    Distro
    Ubuntu 14.10 Utopic Unicorn

    How do I clear screen in terminal

    I'm using Ubuntu 13.10 on a VMware virtual machine installed on my Mac for about three days now.

    In terminal on the Mac there is command-K which clears the screen; I really like it.

    I'm using the Terminal application that came with Ubuntu.

    From the GUI menu I see "Reset." But when I go to the keyboard shortcuts part of the Terminal app, it says "Disabled" next to "Reset."

    How can I enable a keyboard shortcut to clear or reset the screen?

    Thank you.

    Shai

  2. #2
    Join Date
    Apr 2012
    Location
    Canada
    Beans
    75
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How do I clear screen in terminal

    HiTo clear screen in terminal try shortcut
    Code:
    Control-L
    or type command
    Code:
    clear
    Cheers,Bruno

  3. #3
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    7,703

    Re: How do I clear screen in terminal

    Ooh! I never knew the ^L one.

    In rare occasions (especially when catting binaries to the console by mistake), the console gets stuck in a mode where things don't print properly. In those instances, I use reset which seems more thorough in restoring settings.
    Last edited by The Cog; November 19th, 2013 at 05:39 PM.

  4. #4
    Join Date
    Nov 2013
    Location
    Pennsylvania
    Beans
    22
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: How do I clear screen in terminal

    Wow, so easy. Thanks.

    Are those documented somewhere?

    Shai

  5. #5
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How do I clear screen in terminal

    It looks like both clear and ctrl-L are described in the manual page for bash, but you almost have to know they are there to find them. If you look hard you can find it in there.

    Code:
    man bash
    If I recall correctly, ctrl-l was 'form feed' and used to advance the teletype to the next fold in the paper. It got carried over to clear the screen when we moved off of paper.

  6. #6
    Join Date
    Jul 2007
    Location
    UK
    Beans
    17,059
    Distro
    Ubuntu Development Release

    Re: How do I clear screen in terminal

    Quote Originally Posted by shai3 View Post
    Wow, so easy. Thanks.

    Are those documented somewhere?

    Shai
    http://linux.about.com/od/lts_guide/a/gdelts17.htm

    ctrl r is awesome

    http://how-to.wikia.com/wiki/How_to_...ther_terminals

  7. #7
    Join Date
    Sep 2007
    Location
    over there
    Beans
    2,521
    Distro
    Ubuntu

    Re: How do I clear screen in terminal

    Quote Originally Posted by shai3 View Post
    Are those documented somewhere?

    Shai
    The Linux Documentation Project (tldp.org) is a handy site to find tutorials and other things Linux. Check it out.
    "All people are scum. No matter what they look like." ~ Spider Jerusalem, Transmetropolitan #4



  8. #8
    Join Date
    Nov 2013
    Location
    USA
    Beans
    10
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do I clear screen in terminal

    If you have garbage output all over you screen (just weird looking symbols/non-english chars) 'reset' will also work like a charm.

  9. #9
    Join Date
    Mar 2011
    Location
    19th Hole
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: How do I clear screen in terminal

    The Bash man page is excruciating. Does anyone actually understand it? Don't get me wrong... I very much appreciate all of the contributions that the FOSS community has made to the Linux-sphere, but that has to be the densest, most obscure and jargon-laden piece of arcanna I've ever tried to decipher. In my opinion, it stands as a shining example of how not to write a man page, which, after all, is at least partly meant to be a help document. What most distros need is a Bash cheater sheet for the rest of us. Perhaps just eight or ten screens deep and filled with stuff like <Ctrl>+<r> and <Ctrl>+<l> with one- or two-line summaries of use and function.

    Ahh. Feel better now that I've got that off my chest.

  10. #10
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How do I clear screen in terminal

    Quote Originally Posted by DuckHook View Post
    The Bash man page is excruciating...
    Yeah, it's definitely not one of the best. The format used is not hard to work with and is quick to learn, so if you are good at technical writing, you could propose a new version upstream. It really needs reworking.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •