Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

agdgdgdgwngo

  • 4 years ago

in bash, how do I scroll up?

  • This Question is Closed
  1. agdgdgdgwngo
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    lets say I do this: / $ ls bigHonkinDirectory $ cd bighonkindirectory /bighonkindirectory $ ls screenfuls of files how can I view all the files?

  2. agdgdgdgwngo
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    view the filenames*

  3. jagatuba
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    To scroll up, hit Shift-Up. To scroll down, hit Shift-Down.

  4. acomodar
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    or just use ls | more it will show you page by page

  5. jagatuba
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Alternatively, pipe the command to the less command. Yeah @ acomdar

  6. agdgdgdgwngo
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    so the only bash commands I know are man, ls, cat, more, less, rm, cd

  7. agdgdgdgwngo
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    also pwd

  8. Cryptic57
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I'm new to this but would cp to another open/readable folder not work? Or is this like the pipe and/or less command.

  9. jagatuba
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Yes that is like piping and it will work.

  10. rsmith6559
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    ls | more ls's output is piped ( | ) to more's input. You can chain things arbitrarily long doing this. Each week I have to check an inventory of tapes by: cat fileName | egrep 'D00' | sort | more which gives me all the tapes whose name begins with D00 in sorted order and I can control the scrolling.

  11. Tomas.A
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 2

    always use less instead of more, because with less you can scroll up/down while with more you can go only one direction

  12. rsmith6559
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    more will go up or down try CTRL+U, CTRL+B, CTRL+D, CTRL+F, the return key and the spacebar.

  13. Tomas.A
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 2

    hmm yes, but with less i can just use arrows or mouse scroll :P

  14. jagatuba
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Yep.

  15. rsmith6559
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Depending on the OS, or probably the window manager, this functionality is available.

  16. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy