ps aux | grep returns pid for itself too

前端 未结 2 890
面向向阳花
面向向阳花 2021-01-11 12:25

I am using this command to get the process ID of another command:

ps aux | grep 7000.conf | awk \'{print $2}\'

This will return two PIDs:

2条回答
提交回复
热议问题