Here are commands sheet about kernel modules and parameters on different Unix/Linux distros

 

 
Solaris
Red Hat
Ubuntu/Debian
HP
AIX
display loaded modules modinfo cat /proc/modules (more detailed)
lsmod
modinfo <module>

Location:
/lib/modules/`uname -r`/kernel/drivers

Config:
/etc/modprobe.conf
/etc/modprobe.d

cat /proc/modules (more detailed)
lsmod

Location:
/lib/modules/`uname -r`/kernel/drivers

Config:
/etc/modprobe.d/options
/etc/modprobe.d

kmadmin -k genkex
load modules modload -p drv/<module name> modprobe <module>
insmod
modprobe <module>
insmod
kmadmin -L <module name> n/a
unload modules modunload -i <module number> modprobe -r <module>
rmmod
modprobe -r <module>
rmmod

kmadmin -U <module name>
kmadmin -u <module id>

n/a
set kernel parameters (tuning) /etc/system (edit and reboot) /etc/sysctl.conf (edit and update then reboot)
sysctl -p <filename>

sysctl -w param=value

No reboot (dynamically):
echo "250 32000 100 28" > /proc/sys/kernel/sem
echo "536870912" > /proc/sys/kernel/shmmax
echo "4096" > /proc/sys/kernel/shmmni
echo "2097152" > /proc/sys/kernel/shmall
etc.............................................

/etc/sysctl.conf (edit and update then reboot)
sysctl -p <filename>

sysctl -w param=value

No reboot (dynamically):
echo "250 32000 100 28" > /proc/sys/kernel/sem
echo "536870912" > /proc/sys/kernel/shmmax
echo "4096" > /proc/sys/kernel/shmmni
echo "2097152" > /proc/sys/kernel/shmall
etc.............................................

kcweb (11i)
kctune (11i only)
rebuild kernel (< 11i see below)

chdev -l sys0 -a <parameter>=<value>
no -a          (network)
vmo -a        (virtual memory)
nfso -a        (NFS)
ioo -a         (Input/Ouput) 
raso -a        (reliability, availability, serviceability)
schedo -a   (processor scheduler)

vi /etc/security/limits
cd /etc/tunables

tunchange, tundefault, tunsave, tunrestore, tuncheck

Note: most parameters are dynamically changed in AIX , for example memory segments are dynamically adjusted

display kernel parameters cat /etc/system
sysdef -i
sysctl -a
cat /etc/sysctl.conf

cat /proc/sys/kernel/sem
cat /proc/sys/kernel/shmmax
etc...................................
sysctl -a
cat /etc/sysctl.conf

cat /proc/sys/kernel/sem
cat /proc/sys/kernel/shmmax
etc...................................
kctune (11i only)
sysdef
kmtune
kmsystem
/usr/sam/lbin/getkinfo -f /stand/vmunix -o /tmp/kernel.data
lsattr -EHl sys0

Note: only a few kernel parameters can be changed
build kernel

edit and update file then reboot:
/etc/system

cd /usr/src/linux-2.5
edit Makefile (change EXTRAVERSION)
make mrproper
backup .config
make xconfig
make dep
make bzImage
make modules
move new kernel
make modules_install
change lilo/grub config file
reboot
 

cd /stand/build
/usr/lbin/sysadm/system_prep -v -s system
edit system file
/usr/sbin/mk_kernel -s ./system
mv /stand/system /stand/system.old
mv /stand/vmunix /stand/vmunix.old
mv /stand/build/system /stand
mv /stand/build/vmunix_test /stand/vmunix
reboot

chdev -l sys0 -a <parameter>=<value>

Note: most parameters are dynamically changed in AIX , for example memory segments are dynamically adjusted
interprocess communication ipcs -a ipcs -a ipcs -a ipcs -a ipcs -a