Questions tagged [kill]
kill - Send a specified signal to a process or process group.
689 questions
1 vote
1 answer
48 views
Killing a process with ruser root and euser user
I'm learning linux permissions and confused about the permissions for killing a process. First, from kill(2) manpage: For a process to have permission to send a signal it must either be privileged (...
-4 votes
2 answers
281 views
Linux kill command returns "No such process"
In the below shell script I have list of process IDs which need to be killed. When killing a process I am getting kill: 1234567: no such process error even after checking if the process id existence ...
0 votes
2 answers
120 views
Killing a process PID starts a new process instead
I have a running process on localhost on port 5000. I have tried kill - 9 <PID> which it works for that PID but it starts a new process with a new PID instead. What's the issue here? I'll put ...
9 votes
2 answers
3k views
Linux kernel bug - How do you kill a process that won't die?
How do I kill a process that cannot be killed? user@kubuntu22:~$ ps -ef |grep smbd nobody 3532354 1 0 16:30 ? 00:00:00 /usr/sbin/smbd --foreground --no-process-group user@kubuntu22:~$ ...
0 votes
1 answer
234 views
How to send SIGQUIT or SIGINT using bash shell to a shell script
According to BASH manual page, When Bash receives a SIGINT, it breaks out of any executing loops. In all cases, Bash ignores SIGQUIT. So if there was a shell script, started from bash shell, to ...
0 votes
1 answer
73 views
Is there an easy way to kill all other ssh session by me(user) on the server, but keep the current ssh session through command line?
For example, if I ssh to the server at multiple office computer, how can I conveniently kill those ssh at home when I ssh to the server machine?
1 vote
1 answer
250 views
A few potential race conditions with signals and PIDs
I'm aware that because of PID-reuse on Unix-like kernels, signals can be delivered to the wrong process if they are sent after the PID has already been reaped. Discussion of what follows will probably ...
0 votes
1 answer
564 views
How can I make bluetoothctl quit running?
I have been experimenting with bluetoothctl and blueman. I have closed the window of blueman. I have also typed quit in bluetoothctl's command line interface. I have also run systemctl stop bluetooth. ...
0 votes
1 answer
55 views
Run a few identical process and then kill one of them
Problem: Need to run several process, especially it will be “tail -f log.log >> wrile_log.log” proces to collect log. Commands can be run at the different time for same log file. This is not ...
4 votes
1 answer
1k views
What is the correct way to unconditionally kill a process?
I have two hotkeys for interactively looking up and killing a process on Linux: bindsym $mod+k exec --no-startup-id \ "ps axo pid,cmd | sed 1d | dmenu -i -l 20 | awk '{print $1}' | xargs kill&...
-1 votes
3 answers
92 views
"The rest of the line" How setup ssh client console to show all (/px aux) java process line to know the name of the java file?
I have 3 java process running on my host - i access the host by a ssh client. Some one of that process freezed and i need kill that pid process to re-start it I know the name of the file, but i dont ...
1 vote
0 answers
23 views
Script/Daemon to kill specific resource-consuming tools?
I'm working on a SGE linux cluster and beginners often run memory/resource consuming tools on the login node instead of using qsub or qlogin ( https://gridscheduler.sourceforge.net/htmlman/htmlman1/...
0 votes
1 answer
189 views
Operation referenced in sudoers still fails on kill command
I what to be able to restart ConnMan from within Node-RED. That service runs with its own user nodered. When I SSH into the device as the nodered user and type nodered@pi:~$ sudo /etc/init.d/connman ...
0 votes
2 answers
124 views
How can I change the name an executable presents itself to the system
Forgot to mention, running on Suse Tumbleweed, Desktop is KDE Plasma. I have in my bin directory a symbolic link to mpv, $ ls -l bin/Play lrwxrwxrwx 1 boffi users 12 Feb 11 12:33 bin/Play -> /usr/...
0 votes
1 answer
71 views
When does a hup signal affect the parent process? [duplicate]
If I run ./script.sh &, where script is the following: #!/bin/bash echo "hello" sleep 30 echo "hello again" sleep 30 touch /root/foo.txt Then I use ps au, to identify the "...