need help please

Discussion in 'Server Operation' started by meomike2000, Oct 2, 2008.

  1. meomike2000

    meomike2000 New Member

    i have a question that i hope somebody can help me with.
    when at the command line u can type "ls" to get a list of files and directories.
    the question i have is how do u make it stop if the list is to long to fit the page.

    at a windows command line you would type "dir" and use the p option.

    does anybody know if this is possible and if so how?

  2. edge

    edge Active Member Moderator

    What I normally do is tye ls > somename.txt
    This will dump everything in the file somename.txt
    Now you can open somename.txt, and look through it line by line.
  3. Leszek

    Leszek New Member

    This will work as well:
    ls | more
  4. Jamesr

    Jamesr New Member


    ls | less
    space bar to page down
    to quit
  5. meomike2000

    meomike2000 New Member

    thank you

    all three work very well.
    thank you thank you thank you......
  6. Jamesr

    Jamesr New Member


    Glad to be of help.

Share This Page