tail -f /var/log/messages #following debug messages from the kernel grep "define __NR" unistd.h | wc -l #count system calls on a kernel dmesg #display kernel debugs from RAM journalctl -t kernel #show systemd journaling about kernel journalctl -f #monitor journaling generated by the systemd grep MemTotal /proc/meminfo #get memory available to kernel uname -r #display kernel version ls -l /boot/kerne* #get size of the kernel image strace -c date #monitor all system calls of a program/command with the kernel strace sh sscript.sh #monitor sys calls inside a script / builtin commands on bash /etc strace ./script /etc #same as above along with args to script grep -i ethernet file #ignore case/capitalization sudo sysctl -a | grep ip_forward # get config from /proc/sys ## start : check kernel command args put by the grub during booting cat /proc/cmdline dmesg | grep -i command ##