How to kill processes

on July 30 | in SCRIPTING | by | with No Comments

 

How to kill all process of particular user.

 

pgrep -u username | xargs kill -9

su – username -c “kill -9 -1”

How to kill all java process.

ps -ef | grep java | grep -v grep | awk ‘{print $2}’ | xargs kill -9

pgrep chrome | xargs kill -9

 

2190 Total Views 3 Views Today
Pin It

related posts

Comments are closed.

« »