Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

agdgdgdgwngo

  • 2 years ago

in bash, how do I scroll up?

  • This Question is Closed
  1. agdgdgdgwngo
    • 2 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
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    view the filenames*

  3. jagatuba
    • 2 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
    • 2 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
    • 2 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
    • 2 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
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    also pwd

  8. Cryptic57
    • 2 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
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Yes that is like piping and it will work.

  10. rsmith6559
    • 2 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
    • 2 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
    • 2 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
    • 2 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
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Yep.

  15. rsmith6559
    • 2 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

Ask a Question
Find more explanations on OpenStudy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.