Note: if you have Ubuntu or Debian derivative system copy paste it if you don’t have get root right and type the code without sudo.

How to download videos from Youtube

It is very easy. Go to youtube and copy the link of the video:
Now launch a terminal window (ctrl+alt+t), type youtube-dl and space than right click to terminal paste the URL / like this:

youtube-dl [URL_of_the_video_from_youtube]

youtube-dl https://www.youtube.com/watch?v=M5ag_2b02kc&t=0s

How to download playlist from Youtube

It is very easy to download a playlist from youtube. Go to youtube and copy the URL of the playlistfrom youtube:
Now launch a terminal window (ctrl+alt+t), type youtube-dl and space than right click to terminal paste the URL / like this:

youtube-dl [URL_of_the_video_from_youtube]

Your video/videos will be in your /Home directory.

How to update youtube-dl

Sometimes you need to update youtube-dl

sudo youtube-dl -U

How to Download Videos as MP3 Format from Youtube / How to Download MP3 from Youtube