How to Download YouTube Videos in Ubuntu via Command Line

Downloading a YouTube video in Ubuntu is easier via command line than installing an application or using a website like Just follow these simple steps.

  1. Open Terminal

  2. Run the following command to install YouTube Downloader:

sudo apt-get install youtube-dl

  1. Run the following command in Terminal for each video you wish to download:

youtube-dl Youtube URL Here

Your videos will be saved to your home folder in mp4 format.

Photo credit: Yeamake /