LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Page break command (https://www.linuxquestions.org/questions/linux-newbie-8/page-break-command-537005/)

gubak 03-13-2007 02:05 AM

Page break command
 
Hi!

When I want to listening my linux system with netstat command, the system gives me back more records than one page and I can't see the upper records.
Is there any page break parameter for netstat command?

Thanks!

blackhole54 03-13-2007 04:27 AM

The way something like this would normally be handled in Linux is to pipe the output to either more or less, something like this:

Code:

netstat -na | more
netstat -na | less

My preference is less since you can scroll the output both forward and backwards (using the arrow keys), search, and several other capabilities. Check out the man pages of these commands for more info.

The options for netstat I listed above are just examples. You can use this technique for any command that sends its data to stdout.


All times are GMT -5. The time now is 05:32 AM.