Questions tagged [kill]

used in bash/shell to kill process

Filter by
Sorted by
Tagged with
-2 votes
0 answers
23 views

Where Can I place my script so it kills a specific hanging process just before logging out?

I am using Ubuntu 20.04 with gnome. Please read in full before replying because .bash_logout and a systemd service doesnt fix this problem. So i have a running process in the background when i log ...
user avatar
1 vote
1 answer
89 views

Can't Kill VLC until Restart

Sometimes, after I play some videos with VLC Media Player, it stops working and I can't use it or kill it. The icon still appears in the system tray. When I click it and press "Quit," ...
user avatar
1 vote
0 answers
59 views

How to exit from snap watch command?

I launched a snap install command from one bash terminal and I wanted to see the installation progress in another terminal. I first ran snap changes to figure out the ID value to watch for, then ran ...
user avatar
  • 111
0 votes
0 answers
68 views

Using pkill or kill ps aux (inside a script) to kill processes results in Pulseaudio losing audio connection?

I have this script that searches for multiple applications and kills them for situations of low memory (or when browser starts to lag CPU) pkill -f 'chrome --type=renderer' (Kills only browser tabs, ...
user avatar
  • 522
0 votes
0 answers
80 views

Turn off webcam on Ubuntu 20.04

I posted this question to get cheese working on my pc. The solution I recieved didn't work so I tried installing KDE's camera app, 'Kamoso' and it too showed a long error message. priyanshu@Inspiron-...
user avatar
1 vote
3 answers
54 views

kill app in a given timeframe, bash script

I'm new at bash and I am trying to make this, here is a pseudo code: id= "pidof rhytmbox" (rhytmbox changes pid everytime i start it) echo "Input time: " read time sleep $time ...
user avatar
-1 votes
1 answer
128 views

How to kill a process that autostarts

Recently I started managing a server (hostsed by a cloud provider) for my work. Problem is that the server is injected. Within now and a few months the server will be replaced by a new one in order to ...
user avatar
  • 13
7 votes
4 answers
6k views

How to kill firefox from command line

How to kill firefox from the command line? I have tried: pkill firefox # the command was known to work previously pkill -9 firefox kill -9 firefox # descibed in https://unix.stackexchange.com/...
user avatar
  • 567
0 votes
0 answers
177 views

Unable to shutdown redis-server even after uninstall

After uninstalling: > ps aux | grep redis-server root 147242 0.7 0.0 52968 7824 ? Ssl 16:58 0:00 /snap/redis/137/usr/bin/redis-server *:6379 stavalfi 147321 0.0 0.0 17672 ...
user avatar
  • 111
0 votes
0 answers
132 views

Ubuntu server crashes - OOM Killer

I'm not sure where to ask this question, because i am not sure where the problem lies. Hope anyone can help me. For a few months now I've been having issues where my server just crashes and I've ...
user avatar
0 votes
0 answers
866 views

scrcpy is not working showing ERROR: "adb push" returned with value 1

I install scrcpy and sudo snap install scrcpy https://snapcraft.io/scrcpy at first it was working fine.after a certain time it throws this error ERROR: "adb push" returned with value 1
user avatar
0 votes
1 answer
144 views

Xfce - is there any way to speed up "close window" for unresponsive applications?

In Xubuntu 20.04, if a window won't close first time, it brings up a dialogue with words to the effect of "This application is taking a long time to close, do you want to kill the process?" ...
user avatar
-5 votes
1 answer
174 views

How to kill all processes from a user using GPU?

How do I kill all processes from a user using GPU? E.g. killall --gpu --user kong
user avatar
  • 1,082
0 votes
4 answers
1k views

How to kill 3 processes with totally different names? [closed]

I want to kill 3 processes with all different names, nothing in common at all. How do I do this? grep cant capture them all because there is nothing in common, or is there a way to make it grab all ...
user avatar
1 vote
0 answers
151 views

How do I pkill a process and all its child processes by name?

pkill -f 'name' is not sufficient because it leaves some left-over processes in control group that ran while starting. is there any way to do this in 1 line or so?
user avatar
0 votes
1 answer
110 views

How to free system of useless processes in a safe way?

I am kinda new to Ubuntu. For the past 4 months, I have been setting up various development environments for various purposes, the worst thing I did was just googling how to install this or do this ...
user avatar
0 votes
0 answers
62 views

kill process without inputting password [duplicate]

EDIT I ran the following: $ echo $USER goldy $ hostname goldy-ThinkPad-X1-Carbon-6th $ sudo visudo -f /etc/sudoers.d/kill and added goldy goldy-ThinkPad-X1-Carbon-6th = (root) NOPASSWD: /bin/kill And ...
user avatar
0 votes
1 answer
494 views

How to kill multiple processes?

Is there a way to kill multiple processes? e.g. kill -9 49855 49856 I have tried using commands like pkill but they require a single pattern and do not allow multiple pid inputs.
user avatar
  • 1,082
1 vote
1 answer
1k views

Killing all Python processes that are using either of the GPUs

I have the following and I don't want to enter the PID of each Python process that uses either of GPUs one by one. How can I do so? +--------------------------------------------------------------------...
user avatar
  • 3,691
2 votes
2 answers
1k views

pkill doesn't kill

I tried to kill a process using pkill -9 <pid> Whenever I run that command it returns nothing and the process isn't killed either. How do I proceed now? Edit: I was stupid trying to use pkill ...
user avatar
0 votes
1 answer
99 views

Killing a process but it doesn't close

I wrote a C program that creates a process that opens a .txt file and when I press Ctrl + C, it will close the process and print out a message but I'm having a huge problem. The process I created when ...
user avatar
  • 1
0 votes
0 answers
43 views

How to kill openerp when it changes PID?

How do I kill openerp so that odoo can run correctly? nicholas@mordor:~$ nicholas@mordor:~$ ps aux | grep openerp nicholas 75353 0.0 0.0 17528 880 pts/0 S+ 18:46 0:00 grep --color=auto ...
user avatar
3 votes
1 answer
957 views

How to stop all processes of a snap package (like Android-Studio)

This question is odd. Please note that this is not an android-studio question but a snap question. android-studio only is one culprit which misbehaves and should be restrained by snap. android-...
user avatar
  • 636
5 votes
2 answers
1k views

How do I turn off automatic updates COMPLETELY and FOR REAL?

Running Ubuntu 18.04 on x64. I need to COMPLETELY turn off the "automatic updates reminder" stuff on my Ubuntu system. The problem is that the machine is doing some unattended processing ...
user avatar
1 vote
0 answers
102 views

pkill inside the cron script kills next commands

I have a hash.sh file which runs as cron job. Inside the script I need to call pkill to clean some redundant process. But when pkill is called whole script ends up immediately and next commands are ...
user avatar
  • 479
0 votes
2 answers
216 views

Remotely kill a running process in an Ubuntu system with no space left

EDIT I had to go to the console and reboot, as it was unresponsive to any command. I am trying to ssh to an Ubuntu 18.04 server, and it is unresponsive. But it responds to ping. I suspect it has a ...
user avatar
0 votes
2 answers
3k views

Not able to kill process by "kill -9 <PID>" [duplicate]

I want to kill process, which related to rsync. By entering ps axu | grep -i lsyncd, I receive information about one process: andrej 10690 0.0 0.0 15984 1148 pts/1 S+ 16:52 0:00 grep --...
user avatar
  • 111
0 votes
0 answers
33 views

Safe and convenient recovery short of reboot

It has been my experience in recent weeks that 20.04 hangs much more than 16.04. The most recent incident involved editing in gedit while Firefox and a gnome-terminal were also open. Often Skype is ...
user avatar
  • 9,133
0 votes
0 answers
18 views

blocking new processes system

is there a way to kill all new processes that appear in watch -n 0 ps -A -o cmd -o pid by new processes i mean everything after the PC start by 30 seconds, every command which did not run in that 30 ...
user avatar
  • 1
0 votes
1 answer
169 views

How to automatically kill / terminate process as soon as it is launched?

Is there a way to automatically kill a certain (sub)process the very moment it is launched? I've read in this answer how to filter a process by its name and kill it: sudo ps aux | grep '<process ...
user avatar
1 vote
2 answers
3k views

Cannot kill `grep --color=auto` process in terminal

I use ps aux | grep -i apt to find the process and get: antonio 19070 0.0 0.0 14424 1096 pts/0 S+ 07:41 0:00 grep --color=auto -i apt Commands such as sudo kill -9 14424 or any other ...
user avatar
0 votes
0 answers
398 views

Kill this clamd process running from another user which I never know about

From HTOP Hi, there is a clamd process running from a user called "tcpdump" I google and found that it's not quite a real user, so I remove that user. However, this process still running and ...
user avatar
2 votes
2 answers
281 views

Kill #### but process still there?

I would expect to see nothing in the 3rd command below, but clearly my expectations are incorrect. Why? $ sudo fuser -v /dev/snd/* USER PID ACCESS COMMAND /dev/snd/...
user avatar
0 votes
0 answers
1k views

Python doesn't kill proccess

I want to kill all of the child processes of the n and also n its self. It works when I run the code form terminal but when I run the code in production mode (using Nginx ,GUnicorn and systemd and ...)...
user avatar
  • 1
3 votes
0 answers
458 views

Zoom not closing properly

I have Zoom installed as a snap. When I close Zoom, it stays in memory as shown in top. And if I start it again it just creates more copies in memory. I then have to killall -9 zoom Is there a fix?
user avatar
  • 2,306
0 votes
0 answers
82 views

What happens when I kill a script that was started at boot without the &?

I have a ARM64 board running Ubuntu 18 and I wrote a .sh script that is executed at boot (with rc.local): create_ap [...] & taskset -c 0 python my_script.py & create_ap refers to this project....
user avatar
  • 111
0 votes
2 answers
442 views

Bash script for periodically launching and killing an app

I have a short script which should launch an app, wait for an hour, then kill it and wait for a minute. It only starts the app. I tried to run the script both as a normal user and root, but nothing ...
user avatar
1 vote
0 answers
76 views

unkillable process caja waiting for "do_coredump"

So caja is unresponsive and I can't kill it in Ubuntu Mate 18.04. I took a screenshot showing what system monitor says about it. I tried killing it in the terminal with sudo kill 2719. I tried ...
user avatar
0 votes
1 answer
342 views

Memory and CPU usage on kill -STOP

I recently learned kill -STOP command. I was wondering, what happens to the data on memory if I do this command. For example, if I do kill -STOP on a process 999 which is taking 20 GB out of 32 GB ...
user avatar
  • 511
1 vote
2 answers
2k views

What will I see after I kill the /sbin/init?

What will happen after I killed /sbin/init (PID:1)? Will the system crash after this?
user avatar
  • 505
0 votes
0 answers
58 views

how to kill process passwd from a second terminal. Root process cannot be killed?

I have my one terminal running the passwd command, without entering new password. then with a second terminal I need to kill the process passwd, however as it is a root process I don't know how to ...
user avatar
1 vote
2 answers
3k views

Process id is constantly changing, and it can't be killed with name

I'm working with Ubuntu 16 through SSH, and facing an issue with it. I want to kill the process but can't find a way because it keeps changing the PID every time. I'm using this command to check the ...
user avatar
  • 117
0 votes
1 answer
2k views

Kill connected ovpn client from openvpn server

How can I kill the connected ovpn client form openvpn server via command line.
user avatar
  • 1
1 vote
2 answers
5k views

Killed bash process keep restarting

The server has a running bash process with 2200% CPU usage: $ ps aux | grep 10986 root 10986 2198 1.8 2483184 2437820 ? Ssl 13:23 962:25 -bash The process has 22 -bash threads as shown in ...
user avatar
  • 133
4 votes
2 answers
2k views

Why does `kill %jobnumber` not work on stopped jobs?

I'm running a few tasks side by side on an Ubuntu 18 LTS system. So I'm switching between these jobs by running: # command & # fg # fg - I'm also using Ctrl+Z sometimes to send a running job to ...
user avatar
  • 143
0 votes
1 answer
451 views

kill -9 not always working - why?

Obviously, a hardware problem is involved. GPU # 8 is "Stuck" and I cannot kill the apps using it. Each app timed out and reported the problem to the control program (boinc) but it seems the control ...
user avatar
0 votes
1 answer
369 views

pkill -f vlc not killing /usr/bin/vlc --started-from-file file:///home/pi/hdd/DL/

I have a vlc that doesnt want to stop running, even after closing it. When I run ps aux , I get: pi 31284 0.8 2.1 288520 84592 ? Sl 20:10 0:05 /usr/bin/vlc --started-from-file ...
user avatar
0 votes
1 answer
230 views

closing processes using /home in order to move /home to new drive

I'm moving my /home from one drive to another new drive. I'm doing it from tty3 as root. I've used sudo mv '/home' '/old_home' but it says device or resource busy. I've tried to kill the process ...
user avatar
  • 1
1 vote
1 answer
51 views

What does it mean when ^\ doesn't work, but kill -9 does?

Recently, I've had a third-party program hang in a weird way. It stops taking input or output, and ^C and ^\ do nothing. kill -9 and killing the parent process do end it. What state could the process ...
user avatar
  • 309
1 vote
0 answers
370 views

I have a process (left) that I cannot kill? Anything aside from a reboot?

I have a process that I ran under a Tmux session that I cannot kill. I have tried kill, kill -9, a few other kill numbers, without it having any effect. I killed the tmux session successfully but ...
user avatar

1
2 3 4 5