[linux] kill command to kill the process

What is the kill command?

A command to terminate the process with the specified process ID.


$kill process number (PID)

How to use

  1. Execute the following command to find out the process ID.

$ ps #Check the currently running process

$ ps ax | grep gedit #Show only processes with the name "gedit"
16619 ?        Sl     0:01 gedit
  1. Use the kill command to specify the process ID and terminate the program.

$ kill 16619
  1. If you want to forcibly terminate, execute the following command.

$ kill -9 16619

Main options

command Overview
-s signal Send the specified signal name or signal number
-signal Send the specified signal name or signal number
-l [] Display the correspondence between signal names and signal numbers

Recommended Posts

[linux] kill command to kill the process
[Linux] How to use the echo command
How to use the Linux grep command
Linux: Rename the process displayed by the ps command
Kill the process with sudo kill -9
Linux user addition, how to use the useradd command
(Remember quickly) How to use the LINUX command line
Linux command # 4
Linux command # 3
Command to create Linux Live USB
Linux process
Linux command # 5
[Linux] I tried to summarize the command of resource confirmation system
How to output the output result of the Linux man command to a file
I tried to summarize the umask command
[linux] Split files to the specified size
Notify Slack when the linux command finishes
How to operate Linux from the console
[Linux convenient command] Try to insert vivid
3 best ways to use the less command
Linux command list
linux at command
[Linux] Search command
Linux command <Basic 2>
[Linux] Command to get a list of commands executed in the past
Linux server command
Linux # Command Memo 1
Linux command [read]
Linux Command Summary
[Basic] linux command
Linux [shell command]
[Linux] Introduction to Linux
[Linux] Command / Knowledge
My linux command
Linux command <Basic 1>
Linux command collection
Linux mkdir command
Linux command basics
[Linux] Git command
Linux (command memory)
Add Windows to the Linux OS boot menu
Adjust file permissions with the Linux command chmod
How to operate Linux from the outside Procedure
Linux: Understand the information displayed by the top command
Try to create a new command on linux
How to create a shortcut command for LINUX
It's a Mac. What is the Linux command Linux?
Convert XLSX to CSV on the command line
Create a command to get the work log
I want to be notified when the command operation is completed on linux!
Control the Linux trackpad
How to create an article from the command line
How to write a GUI using the maya command
[Linux] Volume configuration command
Linux command cheat sheet
[Linux] How to display CPU usage, display header, and not display grep process with ps command
Open Chrome version of LINE from the command line [Linux]
Linux command (sequential update)
Introduce serverspec to Linux
[Linux] Execute git pull regularly with the crontab command
Linux basic command memorandum