Home Kill Command In Linux
Post
Cancel

Kill Command In Linux

The kill command is used to terminate a process manually.

1
2
3
4
    Syntax: kill [OPTIONS] [PID]
    where,
    OPTION = signal name or no.
    PID = Process ID
  • To see all the signal names
    1
    
      Syntax: kill -l
    

    Some of the most widly used kill commands

    1
    2
    3
    4
    5
    6
    
      Syntax:
          kill PID
          kill -1 PID (to restart the process)
          kill -2 PID (interrupt from keyboard like `Ctrl+C`)
          kill -9 PID (forcefully terminate the process)
          kill -15 PID (kill process gracefully)
    
This post is licensed under CC BY 4.0 by the author.