lsmod : 적재된 모듈 출력
modprobe : 모듈을 로드 및 언로드 할때 사용
modinfo : 모듈의 정보 확인
insmod : 모듈 적재
rmmod : 모듈 삭제
[root@rhel 바탕화면]#lsmod
Module Size Used by
fuse 66138 2
ip6table_filter 2855 0
ip6_tables 19424 1 ip6table_filter
ebtable_nat 1975 0
ebtables 18101 1 ebtable_nat
ipt_MASQUERADE 2400 3
iptable_nat 6124 1
nf_nat 22788 2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4 9440 4 iptable_nat,nf_nat
nf_defrag_ipv4 1449 1 nf_conntrack_ipv4
xt_state 1458 1
nf_conntrack 79643 5 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4,xt_state
ipt_REJECT 2349 2
xt_CHECKSUM 1269 1
iptable_mangle 3283 1
iptable_filter 2759 1
ip_tables 17765 3 iptable_nat,iptable_mangle,iptable_filter
bridge 74177 0
autofs4 27683 4
bnx2fc 104984 0
cnic 51939 1 bnx2fc
uio 10940 1 cnic
fcoe 20504 0
libfcoe 37740 2 bnx2fc,fcoe
libfc 105341 3 bnx2fc,fcoe,libfcoe
scsi_transport_fc 52002 3 bnx2fc,fcoe,libfc
scsi_tgt 12107 1 scsi_transport_fc
vboxpci 14094 0
vboxnetadp 5742 0
vboxnetflt 16551 0
vboxdrv 1868541 3 vboxpci,vboxnetadp,vboxnetflt
8021q 24413 0
garp 7310 1 8021q
stp 2107 2 bridge,garp
llc 5608 3 bridge,garp,stp
cachefiles 37082 0
fscache 46761 1 cachefiles
ipv6 322899 53 cnic
dm_mirror 14067 0
dm_region_hash 12136 1 dm_mirror
dm_log 10120 2 dm_mirror,dm_region_hash
vhost_net 29524 0
macvtap 7867 1 vhost_net
macvlan 9986 1 macvtap
tun 16953 4 vhost_net
btusb 17047 0
kvm_intel 47694 3
bluetooth 99514 1 btusb
kvm 300283 1 kvm_intel
uinput 8182 0
thinkpad_acpi 68690 0
hwmon 2464 1 thinkpad_acpi
rfkill 19617 3 bluetooth,thinkpad_acpi
wmi 6221 0
r8192se_pci 509412 0
uvcvideo 63134 0
videodev 76244 1 uvcvideo
v4l2_compat_ioctl32 7236 1 videodev
sg 30186 0
microcode 112845 0
intel_ips 15364 0
i2c_i801 11133 0
iTCO_wdt 12060 0
iTCO_vendor_support 3022 1 iTCO_wdt
shpchp 33448 0
snd_hda_codec_hdmi 24750 1
snd_hda_codec_conexant 47215 1
snd_hda_intel 25261 2
snd_hda_codec 86585 3 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_intel
snd_hwdep 6714 1 snd_hda_codec
snd_seq 56557 0
snd_seq_device 6626 1 snd_seq
snd_pcm 84700 3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_timer 23087 2 snd_seq,snd_pcm
snd 70053 13 snd_hda_codec_hdmi,snd_hda_codec_conexant,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq_device,snd_pcm,snd_timer
soundcore 8052 1 snd
snd_page_alloc 8628 2 snd_hda_intel,snd_pcm
e1000e 213969 0
ext4 359703 4
mbcache 7918 1 ext4
jbd2 88800 1 ext4
sd_mod 38196 6
crc_t10dif 1507 1 sd_mod
ahci 40197 5
i915 429596 7
drm_kms_helper 34896 1 i915
drm 213686 3 i915,drm_kms_helper
i2c_algo_bit 5728 1 i915
i2c_core 31274 6 videodev,i2c_i801,i915,drm_kms_helper,drm,i2c_algo_bit
video 20966 1 i915
output 2471 1 video
dm_mod 75539 2 dm_mirror,dm_log
cat /proc/modules
strace lsmod
/proc 에 위치한 파일이을 읽거나 쓰게 되면 커널에서 이에 해당하는 hanlder 를 호출 한다.
[root@rhel 바탕화면]#ethtool -i eth0
driver: e1000e
version: 1.2.20-k2
firmware-version: 0.12-1
bus-info: 0000:00:19.0
[root@rhel 바탕화면]#lsmod |grep e1000e
e1000e 213969 0
modprobe
ismod 와 modprobe 의 차이
insmod는 단일 모듈 지정된 모듈만 추가 하지만 modprobe 를 사용하면 단일 모듈, 의존성이 있는 모듈까지 자동으로 추가
모듈적재 : modprobe e1000
모듈해재 : modprobe -r e1000
-작성중-