In linux we have ps and top command that can give very good detail about processes CPU utilization along with on which cores it is running.
Do we have something like that in windows which can give Processes and its threads along with CPU usage and on which Core it is running in the command line?
I have looked in tasklist, wmic but none of it gives on which core the process is running. There is another tool called Xperf but it seems some complicated as it is used with another tool to give GUI where we can look for the cores.
Is there any easy way?
Well, of course each OS is different, so expectations need to be adjusted.
No specific single standalone cmdlets for that sort of thing. So, no, you have to write what you'd want. Nothing in the process class on Windows has a property for CPU, but not Cores.
Even for what you are after, it's in different objects.
All-in-all, if you are trying to replicate the Linux like ps and top. You are going to have to look at lower level API's on MSDN, Pinvoke and the like.
Since this not the first time the question has be brought up, and there are several schools of though about it. See the information as outlined here: