LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   View output per page (https://www.linuxquestions.org/questions/linux-newbie-8/view-output-per-page-743971/)

laurens 07-30-2009 01:25 PM

View output per page
 
Hi all,

I googled for it but didn't find:
For example when I display my iptables, or even ifconfig; I only see the last page. I can't succeed in viewing the previously displayed pages.
Thus my question, with which command is it possible to view the output of any command per page, OR, how can you scroll through previously displayed pages (same same).

Secondary, less important, how can you adjust your screen resolution quickly in Debian Etch (5)?!

Thx in advance!

tredegar 07-30-2009 01:32 PM

cat /var/log/messages | less
Then <Pg Up> or <Pg Down>

Or just cat the file to an xterminal, and use the scroll bars.

In a pure text terminal cat /var/log/messages then <SHIFT> <Pg Up> or <SHIFT> <Pg Dn>

pljvaldez 07-30-2009 01:33 PM

You can pipe the command to less or more like ifconfig | more. Read the man page for scrolling forward and backward.

As for screen resolution, I think it depends on the desktop whether there's a little widget you can use for screen resolution. I'm pretty sure on my KDE desktop there was one somewhere in the system menu (I'm not in front of my Debian box right now). Worst case you have to edit your xorg.conf file.

Oh, and Lenny is 5.0. Etch was 4.0. :D

laurens 07-30-2009 02:04 PM

[SOLVED]
Thanks both!

It was the " | more" I needed! (for others: quit via "q")


All times are GMT -5. The time now is 09:34 PM.