Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

kill process group linux

# Find process group ID using child process name 
PGID=$(ps -ej | grep some-process-child | head -1 | awk '{print $2}')  
# Kill process group using group ID
kill -- -$PGID
Comment

PREVIOUS NEXT
Code Example
Shell :: ideavim reload vimrc 
Shell :: ubuntu keyboard repeat 
Shell :: linux adress is already in use 
Shell :: force delete a branch in git 
Shell :: add directory to path windows 10 
Shell :: update fc editor 
Shell :: git store username and password 
Shell :: fix brew 
Shell :: bash loop over files in file 
Shell :: how to push code to github from vscode 
Shell :: git alias 
Shell :: bash print line if column value is in column of another file 
Shell :: change size apache 
Shell :: set git origin 
Shell :: ubuntu install geckodriver 
Shell :: powershell install oh-my-posh 
Shell :: install postgres 11 ubuntu 
Shell :: git tls certificate verification has been disabled 
Shell :: terminal how to find a file name 
Shell :: how to install chocolatey on windows 10 
Shell :: installing Snowflake connector 
Shell :: extract file extension bash 
Shell :: how to make wsl import 
Shell :: how to install gitkraken on fedora 
Shell :: regex all not numbers 
Shell :: how to kill vscode linux 
Shell :: exclude/prevent file from commit using git ignore 
Shell :: add pg_config to path 
Shell :: command wait bash 
Shell :: ubuntu 20.04 uninstall all games 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =