Version: 2008
Advanced Search
advertisement
advertisement
Click Here

Forum display:

Linux: bash shell; how do you scroll?

by Buonarotti - 9/30/06 6:08 PM
advertisement
Post 1 of 9

bash shell; how do you scroll?

by Buonarotti - 9/30/06 6:08 PM

For example; using the ls command in the bin file produces a large amound of text which quickly flows onto the screen leaving visible only the bottom segment of it. So how do you 'scroll' upwards to see the top part?

Post 2 of 9

Pipe it through more or...

by R. Proffitt Moderator - 9/30/06 6:11 PM In reply to: bash shell; how do you scroll? by Buonarotti

To a text file then edit it.

Bob

Post 3 of 9

thanks bob

by Buonarotti - 9/30/06 7:03 PM In reply to: Pipe it through more or... by R. Proffitt Moderator

Both solutions work well.

suprises me that there isn't a straightforward way of scrolling with the arrows-ok, with my experience so far with bash, it doesn't suprise me at all!

cheers
Rich.

Post 4 of 9

ta bob

by Buonarotti - 9/30/06 7:04 PM In reply to: Pipe it through more or... by R. Proffitt Moderator

Both solutions work well.

suprises me that there isn't a straightforward way of scrolling with the arrows-ok, with my experience so far with bash, it doesn't suprise me at all!

cheers
Rich.

Post 5 of 9

Try another terminal (depends on distro)

by R. Proffitt Moderator - 9/30/06 7:10 PM In reply to: ta bob by Buonarotti

Here I can run konsole and it has scroll bars. But this is dependant on your distro. I'm not a historian of or know all distros so my answer is more of the "classic" style that works everywhere.

Bob

Post 6 of 9

Pipe it through less

by 3rdalbum - 9/30/06 8:56 PM In reply to: Try another terminal (depends on distro) by R. Proffitt Moderator

Usually, less is more; but in the Linux world, less is better than more. Confused yet? :-)

Piping through Less will allow you to use the up arrow as well as the down arrow.

ls | less

Post 7 of 9

...actually it is possible

by esperanto_ - 3/20/07 4:43 AM In reply to: Pipe it through less by 3rdalbum

shift + page up / page down...and im a linux noob! lol

Post 8 of 9

Depends on the shell.

by R. Proffitt Moderator - 3/20/07 5:56 AM In reply to: ...actually it is possible by esperanto_

You didn't tell and this discussion noted 2 shells so far.

Bob

Post 9 of 9

seeing contents of /bin

by clsgis - 3/22/07 4:34 PM In reply to: Pipe it through less by 3rdalbum

You're using GNU's ls(1) command. When it sees its output is not a terminal (it's a pipe or file) its output is one filename per line. Probably not what you want. To force the tabular output format, give the -C (colunms) option on the command line. ls -C /bin | less

Forum legend:
Locked Locked thread
Moderator Moderator
CNET staff CNET staff
Samsung staff Samsung staff
Norton Authorized Support team Norton Authorized Support team
AVG staff AVG staff
Windows Outreach team Windows Outreach team
Dell staff Dell staff
Intel staff Intel staff
Powered by Jive Software