2

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.

Oli
  • 289,791
  • 117
  • 680
  • 835
user279506
  • 133
  • 1
  • 4
  • 11
  • 1
    on the same terminal run `pwd` command.The output shows some directory path. Your youtube file would be downloaded on that directory itself. – Avinash Raj May 20 '14 at 11:49

4 Answers4

2

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.

Oli
  • 289,791
  • 117
  • 680
  • 835
  • And don't forget the `.` after nautilus in `nautilus .` otherwise it will open up your home folder. – Parto May 20 '14 at 11:55
1

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).

Vivek Ghaisas
  • 256
  • 1
  • 3
  • 12
0

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)

Hastur
  • 3,860
  • 2
  • 29
  • 39
-1

check in your home directory for the downloaded file

Ruyonga Dan
  • 164
  • 4