How do I get the process that is running currently on a Linux system? When I do a ps -aux, it returns me a list of several processes that are running on the machine.
But a processor can only run one process at a time, right? So how come so many processes run at the same time on the processor? Even if the context switch happens so fast, How can I get that just one process that is running at a given time on the CPU?