Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

command to kill or terminate a process

# command to kill or terminate a process
kill <PID>

# To get the PID, display the running processes with the command below
ps ef

# There are several signals or options associated with the kill command
# To display them;
kill -l

# the default option is -TERM or -SIGTERM or -9

# We can run the kill command with other signals such as below;
kill -KILL <PID>

# we can use the serial number from `kill -l` of the signal to run the kill command
# for example, to forcefully kill a process
kill -KILL <PID>
# OR
kill -SIGKILL <PID>
# OR
kill -15 <PID>

# command to terminate all the processes of a particular program
killall <program name>
Comment

PREVIOUS NEXT
Code Example
Shell :: docker remove 
Shell :: grep a variable 
Shell :: git issues 
Shell :: pip install datetime 
Shell :: créer un script linux 
Shell :: save terminal output to file with script 
Shell :: magento ssh commands 
Shell :: install bottom navigation in react native 
Shell :: page rank example 
Shell :: apt package manager 
Shell :: toasty android github 
Shell :: npm delete 
Shell :: move to folder in command line windows 
Shell :: git push origin cannot be resolved to branch 
Shell :: To add repo from github in linux 
Shell :: heroku docker 
Shell :: authentication failed github 
Shell :: sed replace into new file 
Shell :: merge another branch into current 
Shell :: scp command from local to remote 
Shell :: android studio not running ios simulator 
Shell :: how to uninstall a package in react 
Shell :: install opencv anaconda 
Shell :: go test color output 
Shell :: powershell equivalent of rm 
Shell :: ansible ssh on different port 
Shell :: touch file bash insert text 
Shell :: rsyslogd verify service is running 
Shell :: delete all view options mac os 
Shell :: mongo import all from bson 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =