Linux 下用管道执行 ps aux | grep 进程ID 来获取CPU与内存占用率 #include <stdio.h> #include <unistd.h> int main() { char caS ...