Results 1 to 9 of 9

Thread: "ls" command going off the page!

  1. #1
    Join Date
    Mar 2007
    Location
    Right next to You!
    Beans
    161
    Distro
    Ubuntu 9.10 Karmic Koala

    Question "ls" command going off the page!

    I am attempting to install Xubuntu on a Compaq Armada 1530DM (aka really old) and the installer can not detect my cd-rom. So, I'm in the terminal trying to read the list of devices in /dev, but everytime I type ls, most of the list flys up and off the screen! Is there any option to go page by page?
    Last edited by bks; August 4th, 2008 at 03:35 AM. Reason: fixing typos
    Answer an Unanswered Post TODAY!--Thank Someone Who Helped You TODAY!
    -------------------------------------------
    Registered Linux user: 443978; Registered Ubuntu user: 12615

  2. #2
    Join Date
    Oct 2004
    Location
    Thunder Bay Canada
    Beans
    277

    Re: "ls" command going off the page!

    try
    Code:
    ls | more

  3. #3
    Join Date
    Jan 2008
    Location
    /us/al/home/mb_webguy
    Beans
    2,340
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: "ls" command going off the page!

    Sure. Just pipe the ls into more:

    ls /dev | more

    The command more takes some input (usually from another command through a pipe, the "|" character) and lets you scroll through bit by bit. You can exit out any time by typing the letter "q".

  4. #4
    Join Date
    Dec 2006
    Location
    new Jauezy, usa
    Beans
    98
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: "ls" command going off the page!

    I prefer less over more.

    Code:
    ls /dev | less

    Seriously. It's a program called less.

  5. #5
    Join Date
    Jun 2005
    Location
    Greenville, SC
    Beans
    170
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: "ls" command going off the page!

    Or you could pipe the output to a text file:

    Code:
    ls /dev > dev_contents
    Code:
    gedit dev_contents
    One of the great things about linux, there's almost always multiple solutions to a problem!

  6. #6
    Join Date
    Sep 2007
    Beans
    247
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: "ls" command going off the page!

    or Shift-PgUp to scroll the terminal output

  7. #7
    Join Date
    Dec 2006
    Location
    new Jauezy, usa
    Beans
    98
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: "ls" command going off the page!

    Quote Originally Posted by tacutu View Post
    or Shift-PgUp to scroll the terminal output
    Does that work in a real terminal?

  8. #8
    Join Date
    Jun 2005
    Location
    Greenville, SC
    Beans
    170
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: "ls" command going off the page!

    As long as it's bash...

  9. #9
    Join Date
    Sep 2007
    Beans
    247
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: "ls" command going off the page!

    Quote Originally Posted by 3rods View Post
    Does that work in a real terminal?
    it sure does.

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
  •