Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Check for process and kill if running Linux

if pgrep process_name 2>/dev/null; then
  echo "Terminating process_name"
  pkill process_name
fi
Comment

how to kill running process in linux

ps ux # list the running Process with PID
kill xxxx # hear xxxx is the process id
Comment

PREVIOUS NEXT
Code Example
Shell :: minikube docker driver 
Shell :: git see tags 
Shell :: git remote set origin 
Shell :: forticlient vpn connected but not working 
Shell :: install extension pgcrypto 
Shell :: ngrok install authtoken 
Shell :: install older version of laravel 
Shell :: error TS1056 
Shell :: date fns install 
Shell :: install appx package windows 
Shell :: create a branch from main 
Shell :: chrome download for linux 
Shell :: install android studio from ubuntu terminal 
Shell :: yarn check package version 
Shell :: change global user name git 
Shell :: copy contents of folder to another folder in terminal 
Shell :: loop bash 
Shell :: creating copy of a branch 
Shell :: ssh use key file 
Shell :: stop npm server cmd 
Shell :: updating vscode on ubuntu 
Shell :: linux free port 8080 
Shell :: give docker permission to non-root user in linux 
Shell :: new git 
Shell :: update git repository 
Shell :: ssh raspberryp 
Shell :: git remove file from staging 
Shell :: shell script get arguments 
Shell :: vscode showing deleted branches 
Shell :: docker permission denied dial 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =