I want redirect
top output to a file, but I am interested in the per-CPU usage.
#I only want to see processes belonging to myuser top -b -d 1 -u myuser > top.txt
gives me stats with all the CPUs usage combined.
top and then pressing
1 makes top break out per-CPU usage. How do I redirect this to the file?
I've seen some related questions:
But not found the answer to how to make the part of the command before the redirect operator take the
1 that top needs for per-CPU stats.