Ubuntu – Where does youtube-dl download the videos to

youtubeyoutube-dl

I have downloaded youtube-dl and the video download is complete, but when I
search for the video, I can't seem to find it.

Can anyone help?

Best Answer

There are really two questions here:

1. Why does youtube-dl not feature in Dash?

This is because youtube-dl is run from a Terminal window only and does not come with icons, desktop files and the like. It is simply run from any Terminal window as follows:

youtube-dl [options] url [url...]

Details of the command line options can be easily seen by running the following command:

youtube-dl -h

Experiment a little to make youtube-dl work as you wish.

2. Where does Youtube-dl download YouTube files?

By default youtube-dl will download the files in the current working directory of the Terminal that you have opened. Usually this is your $HOME environment, but not always. This behavior can be modified in either of two ways:

  1. Use the -o option with youtube-dl to manually give a location for the downloaded files:

    youtube-dl -o "~/Desktop/%(title)s.%(ext)s" 'youtube file url'
    

    and of course substitute your actual url for 'youtube file url'. This example sends the completed download to your Desktop.

  2. Create a configuration file for youtube-dl as follows:

    touch ~/.config/youtube-dl.conf
    

    Then set a default download location in this file:

    --output "~/Desktop/%(title)s.%(ext)s"
    

    With this in place all downloaded files will automatically go to your Desktop.

References: