Grepping for a list of processes and then e.g. killing them

Diposkan oleh Unknown on Monday, November 1, 2010

If you e.g. want to kill a list of processes you can all grep but are too lazy to type all the pids. Or e.g. as part of a service script on a server:
ps -ef | grep something | awk '{print }' | xargs -i kill {}

{ 0 komentar... read them below or add one }

Post a Comment

Come on share your comment, but please do not spam