I have downloaded a video file from youtube via command line (youtube-dl) but couln't find it and when I again tried to download the same file the terminal says the file is already downloaded but after rigorous searching of the file in every folder I was unsuccessful.I have only one partition. My O.S is Ubuntu13.10.
4 Answers
By default the videos should be downloaded into the current working directory.
If you're not sure where you are, just run nautilus .
from the command line where you are and that should open up a file browser. Or you can run pwd
to get the path.
There's quite a good recent answer pointing out how to change the default location for youtube-dl
which might help you in the future.
-
And don't forget the
.
after nautilus innautilus .
otherwise it will open up your home folder.– PartoMay 20, 2014 at 11:55
You could use the find
command to search for it, if you'd like.
find ~/ -type f -iname 'somename'
Search for all files (-type f
) in the ~/
(home) directory with name (case insensitive) somename
. You can also use -iname '*.flv'
if you know what the file extension is (in this case, .flv
).
-
-
Assuming your
find
statement was correct, that actually means the video doesn't exist anywhere in your home directory. May 20, 2014 at 14:08
From the instruction:
Example: youtube-dl "http://www.youtube.com/watch?v=foobar". The video will be saved
to the file foobar.flv in that example. As YouTube.com videos are usually in Flash
Video format, their extension should be flv.
The name depends from your link, the path should be the current (pwd
show whichis)
pwd
command.The output shows some directory path. Your youtube file would be downloaded on that directory itself.