Is there any Linux command to get various information like context switches of a process? Any solution other than ps will be appreciated.
A context switch counters are in
As an example:
You can get this easily by doing something similar to:
$ grep ctxt /proc/1234/status