?
Solved

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

Posted on 2009-07-14
2
Medium Priority
?
247 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 2000 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month15 days, 8 hours left to enroll

741 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