Terminal Scrolling?

If none of the more specific forums is the right place to ask

Terminal Scrolling?

Postby [c]ode » 2005-12-27 08:39

hello there, I just installed debian and was wondering how I can scroll in the terminal window (I am not running a GUI environment)

Postby Scotti » 2005-12-27 18:07

I don't think it's possible to "scroll" in a non GUI environment, since there is no mouse support. But in some cases you can use the PageUp and PageDown buttons. This instance would be true if you were in some text editor viewing a file.

If you're sitting at the prompt and maybe have listed the files in a directory then I know it's hard to see what was all listed. There are a couple solutions I know of:

List the files into a text file and then use an editor such as vi to view the file.
Code: Select all
$ ls > files.txt

The greater-than operator tells the prompt to place the output of the command in our files.txt file.

My other method that I'm not very familure with is to use a program called 'less'. This program shows you one screen of text at a time, then using the PageDown key you can view more of the output. I've not used this method before but I've seen a friend do it. $ man less.

Hope this helped. :)
Moderator Team Member
Posts: 312
Joined: 2005-11-08 01:13

Postby keyser_soze » 2005-12-27 18:16

depending on how new you are...

less can be used with a pipe. So, for example,

ls -al | less

will allowing you to page up/down through the results.
Posts: 2
Joined: 2005-12-27 14:14

Postby Penguin Skinner » 2005-12-27 19:17

With Scroll Lock on, <Shift><PageUp> and <Shift><PageDown> let's you scroll through the terminal buffer.
Penguin Skinner
Posts: 709
Joined: 2005-09-15 20:37
Location: North by Northwest

Return to General Questions

Who is online

Users browsing this forum: No registered users and 20 guests