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

 

1360 Total Views 1 Views Today
Pin It

related posts

Comments are closed.

« »