LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-10-2024, 06:43 PM   #1
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled
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.

Last edited by linux-man; 02-10-2024 at 06:44 PM.
 
Old 02-10-2024, 06:45 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,266
Blog Entries: 24

Rep: Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195
Quote:
Originally Posted by linux-man View Post
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?
 
Old 02-10-2024, 06:52 PM   #3
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by astrogeek View Post
How did you start it?
With
Code:
$yt-dlp https://www.youtube.com/watch?v=...................
 
Old 02-10-2024, 06:57 PM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,266
Blog Entries: 24

Rep: Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195
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.

Last edited by astrogeek; 02-10-2024 at 07:07 PM.
 
Old 02-10-2024, 09:15 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,328
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
You can cancel a CLI command by hitting CTRL+c.
 
Old 02-11-2024, 03:30 AM   #6
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
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?
 
Old 02-11-2024, 04:48 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
Quote:
Originally Posted by linux-man View Post
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.
 
Old 02-11-2024, 11:04 AM   #8
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Quote:
Originally Posted by linux-man View Post
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".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
progress - to monitor progress of commands robertkwild CentOS 20 10-04-2017 06:35 PM
LXer: How to monitor progress of Linux commands using PV and Progress utilities LXer Syndicated Linux News 0 11-11-2016 07:01 PM
LXer: Configure An Email Gateway With Scrollout F1 Anti-Spam & DLP LXer Syndicated Linux News 0 07-23-2012 02:11 PM
LXer: TI ships Linux-ready DLP eval module for pico projectors LXer Syndicated Linux News 0 01-26-2012 04:10 PM
46" Samsung DLP Screen displays as 50" - Can't see the whole screen! magnet-o Linux - Newbie 2 02-08-2011 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration