Ask your own question, for FREE!
Computer Science 12 Online
OpenStudy (anonymous):

in bash, how do I scroll up?

OpenStudy (anonymous):

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

OpenStudy (anonymous):

view the filenames*

OpenStudy (jagatuba):

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

OpenStudy (anonymous):

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

OpenStudy (jagatuba):

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

OpenStudy (anonymous):

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

OpenStudy (anonymous):

also pwd

OpenStudy (anonymous):

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.

OpenStudy (jagatuba):

Yes that is like piping and it will work.

OpenStudy (rsmith6559):

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.

OpenStudy (anonymous):

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

OpenStudy (rsmith6559):

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

OpenStudy (anonymous):

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

OpenStudy (jagatuba):

Yep.

OpenStudy (rsmith6559):

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

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!