download youtube dl for ubuntu code example
Example 1: install youtube-dl in ubuntu
$ sudo apt-get install youtube-dl
Example 2: youtube-dl ubuntu
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update && sudo apt-get install youtube-dlg