Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

kill

How can I kill a process by name instead of PID, on Linux? [duplicate]

September 15, 2022 by Tarik

pkill firefox More information: http://linux.about.com/library/cmd/blcmdl1_pkill.htm

Categories linux Tags bash, kill, linux, shell Leave a comment

What killed my process and why?

September 8, 2022 by Tarik

If the user or sysadmin did not kill the program the kernel may have. The kernel would only kill a process under exceptional circumstances such as extreme resource starvation (think mem+swap exhaustion).

Categories linux Tags kill, linux, process, signals Leave a comment

How to kill a process on a port on ubuntu

September 7, 2022 by Tarik

You want to use backtick, not regular tick: sudo kill -9 `sudo lsof -t -i:9001` If that doesn’t work, you could also use $() for command interpolation: sudo kill -9 $(sudo lsof -t -i:9001)

Categories ubuntu Tags kill, port, ubuntu Leave a comment

Kill detached screen session [closed]

September 7, 2022 by Tarik

“kill” will only kill one screen window. To “kill” the complete session, use quit. Example $ screen -X -S [session # you want to kill] quit For dead sessions use: $ screen -wipe

Categories linux Tags gnu-screen, kill, linux Leave a comment

Is there any way to kill a Thread?

September 6, 2022 by Tarik

It is generally a bad pattern to kill a thread abruptly, in Python, and in any language. Think of the following cases: the thread is holding a critical resource that must be closed properly the thread has created several other threads that must be killed as well. The nice way of handling this, if you … Read more

Categories python Tags kill, multithreading, python, terminate Leave a comment
Newer posts
← Previous Page1 … Page3 Page4

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa