LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I cancel yt-dlp in progress? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-cancel-yt-dlp-in-progress-4175733734/)

linux-man 02-10-2024 06:43 PM

How do I cancel yt-dlp in progress?
 
I changed my mind about downloading and it's downloading in front of my eyes, how do I stop it with terminal commands? Thanks in advance.

astrogeek 02-10-2024 06:45 PM

Quote:

Originally Posted by linux-man (Post 6482706)
I changed my mind about downloading and it's downloading in front of my eyes, how do I stop it with terminal commands? Thanks in advance.

How did you start it?

linux-man 02-10-2024 06:52 PM

Quote:

Originally Posted by astrogeek (Post 6482708)
How did you start it?

With
Code:

$yt-dlp https://www.youtube.com/watch?v=...................

astrogeek 02-10-2024 06:57 PM

Ah! I mistakenly thought you were downloading yt-dlp itself which you probably would have started in a browser... sorry.

I have no actual familiarity with yt-dlp but I imagine it would respond to Ctrl-C in the terminal where it is running if all else fails. You might try pressing ESC a few times first, I vaguely recall yt-dl used to respond to that.

If those don't work, open a new terminal and try...

Code:

kill pidof yt-dlp
... but only if you have no other instances of it running.

Otherwise, it looks to be well documented, so begin reading.

frankbell 02-10-2024 09:15 PM

You can cancel a CLI command by hitting CTRL+c.

linux-man 02-11-2024 03:30 AM

Quote:

Originally Posted by frankbell (Post 6482727)
You can cancel a CLI command by hitting CTRL+c.

After it gets cancelled using that command would any remnants of that video download remain in disk space since it had been downloading?

pan64 02-11-2024 04:48 AM

Quote:

Originally Posted by linux-man (Post 6482749)
After it gets cancelled using that command would any remnants of that video download remain in disk space since it had been downloading?

it depends on two things (at least): how is it implemented and how is it stopped.
see the man page, it has a huge amount of options to configure it.
Using kill -9 will does not allow to do a cleanup, so if you stop your process with it there can be some wasted files somewhere.

DavidMcCann 02-11-2024 11:04 AM

Quote:

Originally Posted by linux-man (Post 6482749)
After it gets cancelled using that command would any remnants of that video download remain in disk space since it had been downloading?

Yes. You'll find it wherever you downloaded to with the file type "partially downloaded".


All times are GMT -5. The time now is 08:25 AM.