Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-07-2013, 08:03 AM
|
#1
|
|
Member
Registered: Jan 2013
Distribution: CentOS, RHEL 6.4
Posts: 70
Rep: 
|
lsmod command not working
Dear all,
When i trying to user #lsmod /proc/modules it is showing as below
#lsmod /proc/modules
Usage: lsmod
Please suggest me what have to be done.
|
|
|
|
03-07-2013, 08:05 AM
|
#2
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,867
|
You are mixing up two different things.
It is lsmod or cat /proc/modules
|
|
|
|
03-07-2013, 08:07 AM
|
#3
|
|
Senior Member
Registered: Nov 2002
Location: Toronto Canada
Distribution: Slackware 14.0
Posts: 4,634
|
Just type 'lsmod' without the quotes. The program knows to format the contents of /proc/modules ; you don't need to specify that.
|
|
|
|
03-07-2013, 09:04 AM
|
#4
|
|
Member
Registered: Jan 2013
Distribution: CentOS, RHEL 6.4
Posts: 70
Original Poster
Rep: 
|
Quote:
Originally Posted by camorri
Just type 'lsmod' without the quotes. The program knows to format the contents of /proc/modules ; you don't need to specify that.
|
No i am just typed as lsmod /proc/modules
|
|
|
|
03-07-2013, 09:11 AM
|
#5
|
|
Senior Member
Registered: Nov 2002
Location: Toronto Canada
Distribution: Slackware 14.0
Posts: 4,634
|
Quote:
|
No i am just typed as lsmod /proc/modules
|
Please explain what you are trying to do. I don't understand your comment.
|
|
|
|
03-07-2013, 09:22 AM
|
#6
|
|
Member
Registered: Jan 2013
Distribution: CentOS, RHEL 6.4
Posts: 70
Original Poster
Rep: 
|
Quote:
Originally Posted by camorri
Please explain what you are trying to do. I don't understand your comment.
|
i want to read the file /proc/modules.
I used cat /proc/modules, but it is little hard to understand the contents.
So i used to read by the command lsmod /proc/modules which displays in an understandable mode..
|
|
|
|
03-07-2013, 09:37 AM
|
#7
|
|
LQ Veteran
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 8,867
|
Quote:
Originally Posted by yashfire007
i want to read the file /proc/modules.
I used cat /proc/modules, but it is little hard to understand the contents.
So i used to read by the command lsmod /proc/modules which displays in an understandable mode..
|
You cannot use lsmod to show the content of /proc/modules. It (lsmod) already looks at /proc/modules, no need to specify the file.
I.e. (as shown above): lsmod (nothing more, nothing less).
|
|
|
1 members found this post helpful.
|
03-07-2013, 09:46 AM
|
#8
|
|
Member
Registered: Jan 2013
Distribution: CentOS, RHEL 6.4
Posts: 70
Original Poster
Rep: 
|
Quote:
Originally Posted by druuna
You cannot use lsmod to show the content of /proc/modules. It (lsmod) already looks at /proc/modules, no need to specify the file.
I.e. (as shown above): lsmod (nothing more, nothing less).
|
Thank you for your reply..
Now i got clarified..
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:19 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|