ps

Tags: Bash_Command
Tags: ps

1. 按进程名字输出进程号码?Grep PID by process_name?

way 1: pgrep process_name
way 2: ps -ef | grep ssh | grep -v grep |cut -c 11-15
way 3: ps -ef | grep ssh |grep -v grep |awk ‘{print $2}’

2. 按照进程名,用ps输出进程行? Ps show the process_name?

ps -ef|grep ssh|grep -v grep





posted @ 2016-08-15 09:25  lshconfigure  阅读(86)  评论(0编辑  收藏  举报