How to kill a process in a top?

6,954

Press k for kill and enter PID and signal to kill.

Some common signals:

Number Name (short name) Description Used for
0 SIGNULL (NULL) Null Check access to pid
1 SIGHUP (HUP) Hangup Terminate; can be trapped
2 SIGINT (INT) Interrupt Terminate; can be trapped
3 SIGQUIT (QUIT) Quit Terminate with core dump; can be trapped
9 SIGKILL (KILL) Kill Forced termination; cannot be trapped
15 SIGTERM (TERM) Terminate Terminate; can be trapped
24 SIGSTOP (STOP) Stop Pause the process; cannot be trapped. This is default if signal not provided to kill command.
25 SIGTSTP (STP) Terminal Stop/pause the process; can be trapped
26 SIGCONT (CONT) Continue Run a stopped process
Share:
6,954

Related videos on Youtube

Denny00
Author by

Denny00

Updated on September 18, 2022

Comments

  • Denny00
    Denny00 almost 2 years

    Unlike htop -- top is more difficult for me and I would to know how to kill any process in top ? Thank in advance my Stackoverflow friends !

    • Jeff Schaller
      Jeff Schaller almost 6 years
      I think you meant Unix & Linux? Stack Overflow is over there
    • Denny00
      Denny00 almost 6 years
      Yes I mean Linux and Unix and I am in a right place @JeffSchaller !
    • Denny00
      Denny00 almost 6 years
      Unix & Linux is a subsidiary of Stackoverflow isn't @JeffSchaller?
    • Jeff Schaller
      Jeff Schaller almost 6 years
      My understanding is that U&L, SO, and others are all subsidiary entities of Stack Exchange.