Tuesday, March 22, 2011

Linux Modules

All the modules which are currently running under linux can be seen by

cat /proc/modules
cat /sys/module
 

/sys/module is a sysfs directory hierarchy containing information on currently-
loaded modules. /proc/modules is the older, single-file version of that informa-
tion. Entries contain the module name, the amount of memory each module
occupies, and the usage count. Extra strings are appended to each line to specify
flags that are currently active for the module.







All the kernel symbols can be listed using 


cat /proc/kallsyms

To check the Type of file -- i.e the type of executable , cpu architecture build for , format

file binary

example: [Naveen@localhost ~]$ file xor
xor: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, not stripped


cat /proc/devices
       Currently assigned Major No.

No comments:

Post a Comment