Linux 読み込んでいるモジュールリストを表示する

Linux 読み込んでいるモジュールリストを表示する

Linuxで、読み込んでいるモジュールリストを表示する手順を記述してます。

環境

  • OS Rocky Linux release 8.4 (Green Obsidian)

種類を表示

読み込んでいるモジュールリストを表示するには「lsmod」を使用します。

  • Module:モジュールの名前
  • Size:モジュールのサイズ
  • Used by:依存しているモジュールの数と依存しているモジュール名

として表示されます。

lsmod

<出力結果>
Module                  Size  Used by
nft_nat                16384  1
nft_redir              16384  0
xt_nat                 16384  5
veth                   28672  0
nf_conntrack_netlink    49152  0
xt_addrtype            16384  2
br_netfilter           24576  0
xt_CHECKSUM            16384  0
ipt_MASQUERADE         16384  4
xt_conntrack           16384  3
ipt_REJECT             16384  0
nft_compat             20480  21
nf_nat_tftp            16384  0
nft_objref             16384  0
nf_conntrack_tftp      16384  1 nf_nat_tftp
nft_counter            16384  34
tun                    53248  1
bridge                192512  1 br_netfilter
nft_fib_inet           16384  1
nft_fib_ipv4           16384  1 nft_fib_inet
nft_fib_ipv6           16384  1 nft_fib_inet
stp                    16384  1 bridge
nft_fib                16384  3 nft_fib_ipv6,nft_fib_ipv4,nft_fib_inet
nft_reject_inet        16384  4
nf_reject_ipv4         16384  2 nft_reject_inet,ipt_REJECT
llc                    16384  2 bridge,stp
nf_reject_ipv6         16384  1 nft_reject_inet
nft_reject             16384  1 nft_reject_inet
nft_ct                 20480  19
nf_tables_set          49152  22
nft_chain_nat          16384  16