Is there is a command to display number of interrups in Linux bash shell?
Use cat command on /proc/interrupts
cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7 CPU8 CPU9 CPU10 CPU11 0: 8 0 0 0 0 0 0 0 0 0 0 0 IR-IO-APIC 2-edge timer 1: 14 0 0 0 15 0 0 0 0 0 0 0 IR-IO-APIC 1-edge i8042 8: 0 0 0 0 0 1 0 0 0 0 0 0 IR-IO-APIC 8-edge rtc0 9: 3326 138804 0 0 0 0 0 0 0 0 0 0 IR-IO-APIC 9-fasteoi acpi 12: 935 0 0 600 0 0 0 0 0 0 0 0 IR-IO-APIC 12-edge i8042
Another option to watch it with the following command:
watch -dn1 "cat /proc/interrupts"
mpstat command
Run mpstat
mpstat -P ALL
See
https://www.cyberciti.biz/faq/linux-mpstat-command-report-processors-related-statistics/