štvrtok 13. mája 2021

modinfo

 Some parameters in modinfo commands:


modinfo command

- modinfo shows information about linux modules:


There is the output from modinfo command


[root@localhost ~]# modinfo msdos

filename:       /lib/modules/4.18.0-240.22.1.el8.x86_64/kernel/fs/fat/msdos.ko.xz

description:    MS-DOS filesystem support

author:         Werner Almesberger

license:        GPL

alias:          fs-msdos

rhelversion:    8.3

srcversion:     BC5AE327E588FFEF90CB840

depends:        fat

intree:         Y

name:           msdos

vermagic:       4.18.0-240.22.1.el8.x86_64 SMP mod_unload modversions

sig_id:         PKCS#7

signer:         Rocky kernel signing key

sig_key:        15:4F:77:9B:2A:9E:69:A6:88:AA:F7:FF:98:F2:B7:47:92:D2:AF:82

sig_hashalgo:   sha256

signature:      54:D3:06:72:A8:63:AD:98:C9:31:B2:C0:3D:67:CF:1A:0A:8B:80:97:

                C3:8F:BE:25:80:54:EC:85:F0:BB:A4:A9:64:E5:86:79:69:55:8F:81:

                D3:E6:BC:40:9A:E3:F2:F6:9B:07:C6:49:68:63:C9:19:69:D1:C2:6F:

                08:80:8A:CA:00:BC:F1:16:18:CF:20:6A:E6:07:A0:35:90:C3:B7:AD:

                CA:7D:AB:BC:94:E1:4F:12:93:20:1E:5F:FC:70:34:07:5D:16:7F:81:

                3D:7D:FA:9E:CB:74:B9:D0:11:9D:F5:AA:65:0F:B5:A5:2A:14:94:62:

                66:14:F7:64:E4:6D:F4:2D:69:C0:02:D0:02:F1:13:8B:1D:72:9A:9D:

                C0:47:38:6E:B4:2F:E8:2E:D3:62:EE:8D:1D:A2:BA:0C:E7:AA:C8:EC:

                37:57:D7:F8:1B:24:CF:08:B4:93:2D:52:EB:F1:E4:CC:08:DF:A7:27:

                9E:67:A6:A8:DF:6F:E5:FC:16:7F:9A:2E:88:B7:45:74:BD:CC:B9:F1:

                E4:C6:4C:E6:5C:5C:F1:88:A4:58:FD:C0:D6:42:0E:35:4E:F9:42:DC:

                5A:DA:5F:F0:6E:17:62:B1:46:1C:D5:1F:DF:D5:33:61:5E:C0:C0:06:

                C4:C5:D3:5F:FE:E5:8B:27:C6:AF:96:AE:1A:1C:45:42:26:3E:EB:09:

                D2:F3:A8:EC:2A:80:29:0B:B2:BC:BC:C2:B5:1F:35:76:26:85:C6:0A:

                7A:DD:BF:FE:07:F0:E0:75:C3:F5:7E:84:CF:E4:C5:E3:40:65:10:95:

                A8:BF:08:E4:EB:67:93:51:29:14:BC:C2:77:36:C6:50:83:04:54:8F:

                B6:C5:93:7D:0D:EC:60:6E:BF:4D:27:F9:1A:66:53:D2:21:E0:F4:43:

                DE:A3:DB:EE:FB:46:73:E5:BC:14:9E:7E:E4:EA:17:C3:67:C4:8C:10:

                C1:5C:44:CD:4E:03:C8:AF:81:86:D5:C8:11:6E:54:17:2C:59:92:0C:

                9B:D3:62:FE




1) modinfo has parameter -F


syntax: 

modinfo -F author module


[root@localhost ~]# modinfo -F author msdos

Werner Almesberger

[root@localhost ~]#



[root@localhost ~]# modinfo -F author xfs

Silicon Graphics, Inc.

[root@localhost ~]#



[root@localhost ~]# modinfo -F author ext4

Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others

[root@localhost ~]#



2) modinfo and description:


syntax:

modinfo -F description module


[root@localhost ~]# modinfo -F description ext4

Fourth Extended Filesystem

[root@localhost ~]# modinfo -F description xfs

SGI XFS with ACLs, security attributes, no debug enabled


[root@localhost ~]# modinfo -F description bonding

Ethernet Channel Bonding Driver, v3.7.1

[root@localhost ~]#





3) modinfo and license


syntax: 

modinfo -F license module


[root@localhost ~]# modinfo -F license bonding

GPL

[root@localhost ~]# modinfo -F license ext4

GPL

[root@localhost ~]# modinfo -F license ext2

GPL

[root@localhost ~]#


Source: 

https://ostechnix.com/display-linux-kernel-module-information-with-modinfo-command/


1 komentár:



  1. Thanks for sharing this.,
    Leanpitch provides crash course in Servant Leadership ,everyone can use it wisely.

    Servant Leadership
    Servant Leadership training

    OdpovedaťOdstrániť