Solved

how to control linux comman output by page/window when using modinfo and lsmod

Posted on 2009-07-14
2
246 Views
Last Modified: 2013-12-15
Hi,

I am using openfiler

I am getting too many results when I try modinfo and lsmod. Can I control the lines output of these commands. What I mean is if I can control getting 20 lines at once and hit enter and get another 20 lines.

Can I control the output by page/window? what I mean is if I can get a full window and click enter and get another full window?

if possible, please, provide  a sample using the commands.

thanks,
0
Comment
Question by:vielkacarolina1239
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
onethreefour earned 500 total points
ID: 24856453
Just pipe it to 'more', you can do this with just about anything...

cat /var/log/messages | more
dmesg | more
modinfo | more

If you want to send the results of your 'command' to a file instead so you can then browse through it try:
dmesg > /home/me/file.txt
(a single > overwrites the file, a double >> appends to the file)
netstat >> /home/me/netstat.txt

0
 

Author Closing Comment

by:vielkacarolina1239
ID: 31603587
thanks,
0

Featured Post

Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question