in bash, how do I scroll up?
lets say I do this: / $ ls bigHonkinDirectory $ cd bighonkindirectory /bighonkindirectory $ ls screenfuls of files how can I view all the files?
view the filenames*
To scroll up, hit Shift-Up. To scroll down, hit Shift-Down.
or just use ls | more it will show you page by page
Alternatively, pipe the command to the less command. Yeah @ acomdar
so the only bash commands I know are man, ls, cat, more, less, rm, cd
also pwd
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.
Yes that is like piping and it will work.
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.
always use less instead of more, because with less you can scroll up/down while with more you can go only one direction
more will go up or down try CTRL+U, CTRL+B, CTRL+D, CTRL+F, the return key and the spacebar.
hmm yes, but with less i can just use arrows or mouse scroll :P
Yep.
Depending on the OS, or probably the window manager, this functionality is available.
Join our real-time social learning platform and learn together with your friends!