This is how we execute the script (and this is the requirement) ———————————— bash-2.05$ processkill Usage: ./processkill [-p|-f] [-u username] [num] regex Kill processes matching a regular expression -p: print processes matching regular-expression, don’t kill -f: force (don’t ask) num: send specified number to process. 15 if none given bash-2.05$ bash-2.05$ bash-2.05$ bash-2.05$ processkill -u Full Article…
Viewing 1 to 2 of 2 items
How can I kill all processes from a certain user ?
ps -ax | grep <username> ps -ef | grep -v grep | grep sandipan ps displays the process table. efww is a group of options which affect how the process table is displayed. Read about them in the man page. | causes the standard output stream of ps to be piped into the following command’s Full Article…