kill all processes used by a specific application or user

Shell script to kill all processes used by a specific application or user

On Linux servers, when applications are not correctly shut down, there are still some processes running and starting the application with those processes still running can result in the application not starting correctly or not functioning properly. It is imperative to always kill all lingering processes after shutting down an application.

If the list of  the lingering processes is long, it can be a pain to go through them one by one.

This shell script will kill them all in one command.

#!/bin/sh
#NOTE: Please don’t try this unless you have tried every thing else and there is no way else left.
# Run it as root
# For this example, you are running a oracle application using user account oracle.
# We assume that , there are not other application running under the account oracle.
kill -9 `ps -ef | grep oracle  | grep -v grep | awk ‘{print $2}’`




The Cloud is the future: The AWS Certified Solutions Architect – Associate Average salary is $149,446/year. Get Certified Now with the apps below:


AWS Cert Solution Architect Associate PRO: SAA-C02
AWS Cert Solution Architect Associate PRO: SAA-C02
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot
  • AWS Cert Solution Architect Associate PRO: SAA-C02 Screenshot


Solution Architect PRO
Solution Architect PRO
Developer:
‪Etienne Noumen‬
Price:
$5.39

  • Solution Architect PRO Screenshot
  • Solution Architect PRO Screenshot
  • Solution Architect PRO Screenshot
  • Solution Architect PRO Screenshot
  • Solution Architect PRO Screenshot
  • Solution Architect PRO Screenshot



Unknown app
Unknown app
Developer:
Unknown
Price:
To be announced


AWS Certified Cloud Practitioner Mock Exams Pro
AWS Certified Cloud Practitioner Mock Exams Pro
Developer:
‪Etienne Noumen‬
Price:
$5.39

  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot
  • AWS Certified Cloud Practitioner Mock Exams Pro Screenshot



AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ
AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ
Developer:
Etienne D. Noumen
Price:
$4.49

  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot
  • AWS DEV PRO: FlashCards, CheatSheets, Quizzes, FAQ Screenshot



AWS Certified Developer Associate Exam Prep
AWS Certified Developer Associate Exam Prep
Developer:
‪Etienne Noumen‬
Price:
Free

  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot
  • AWS Certified Developer Associate Exam Prep Screenshot


Djamga PRO: Pick Up Games, Health and Fitness Calculator
Djamga PRO: Pick Up Games, Health and Fitness Calculator
Developer:
‪Etienne Noumen‬
Price:
$3.49

  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot
  • Djamga PRO: Pick Up Games, Health and Fitness Calculator Screenshot


Get 20% off Google Workspace (including Google Meet) Business Plan (Americas): L9H4RENHLPH76FV
Get 20% off Google Google Workspace (including Google Meet) Standard Plan with the following codes: 96DRHDRA9J7GTN6
Contact us for more codes

taimienphi.vn