LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   lsmod command not working (https://www.linuxquestions.org/questions/linux-newbie-8/lsmod-command-not-working-4175453112/)

yashfire007 03-07-2013 08:03 AM

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.

druuna 03-07-2013 08:05 AM

You are mixing up two different things.

It is lsmod or cat /proc/modules

camorri 03-07-2013 08:07 AM

Just type 'lsmod' without the quotes. The program knows to format the contents of /proc/modules ; you don't need to specify that.

yashfire007 03-07-2013 09:04 AM

Quote:

Originally Posted by camorri (Post 4906693)
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

camorri 03-07-2013 09:11 AM

Quote:

No i am just typed as lsmod /proc/modules
Please explain what you are trying to do. I don't understand your comment.

yashfire007 03-07-2013 09:22 AM

Quote:

Originally Posted by camorri (Post 4906753)
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..

druuna 03-07-2013 09:37 AM

Quote:

Originally Posted by yashfire007 (Post 4906762)
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).

yashfire007 03-07-2013 09:46 AM

Quote:

Originally Posted by druuna (Post 4906777)
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..


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