LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-20-2009, 07:21 AM   #1
rosv
Member
 
Registered: Jul 2008
Distribution: Slackware, ubuntu
Posts: 53

Rep: Reputation: 15
modprobe -r or rmmod


Hi,
Will modprobe -r modulename and rmmod modulename accomplish the same thing?

If not, what command should be used under what circumstances?

Thanx
 
Old 07-20-2009, 07:46 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Straight from the man(ual) rmmod
Quote:
DESCRIPTION
rmmod is a trivial program to remove a module from the kernel. Most users will want to use modprobe(8) instead, with the -r option.
And when reading up on man modprobe the only diffrence not mentioned for rmmod is that no longer modules are not removed.


Cheers Zhjim
 
Old 07-20-2009, 10:39 AM   #3
PresGas
Member
 
Registered: Jul 2008
Location: Bloomington, IN
Distribution: Ubuntu/Debian
Posts: 51
Blog Entries: 5

Rep: Reputation: 18
To clarify language from zhjim, rmmod will not remove unused, dependent modules that were used. In short, modprobe does dependency checking like a package manager.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rmmod error shin2011 Linux - Newbie 2 12-02-2008 07:42 PM
help with insmod and rmmod jaepi Programming 21 05-28-2007 09:42 PM
rmmod: command not found ferradura Slackware 3 12-19-2006 01:42 PM
rmmod -f not working R0UTE Linux - Software 0 10-27-2004 09:12 AM
Why can't I use lsmod rmmod etc JohnSharp Linux - Newbie 4 04-08-2004 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration