Download File In Terminal Mac



youtube-dl is an Open Source command line tool that lets you download video from YouTube (and many other videos sites). It’s often considered better than those paid video downloaders. In our previous article, we saw how to use youtube-dl to download videos on Android terminal. Even Windows has a YouTube GUI client, there are no such resources available for macOS. So, in this article, we’ll give you a walkthrough on how to install youtube dl on mac. Let’s begin.

  • The Windows Terminal is a modern, fast, efficient, powerful, and productive terminal application for users of command-line tools and shells like Command Prompt, PowerShell, and WSL. Its main features include multiple tabs, panes, Unicode and UTF-8 character support, a GPU accelerated text rendering engine, and custom themes, styles,.
  • In the Terminal app on your Mac, use the mv command to move files or folders from one location to another on the same computer. The mv command moves the file or folder from its old location and puts it in the new location. For example, to move a file from your Downloads folder to a Work folder in your Documents folder.

The Terminal in OS X is a relatively powerful environment, where you have access to a number of scriptable tools that can help you configure, gather information, and otherwise use your Mac in ways that you cannot otherwise do with a mouse and graphical elements. If you need to search for files in OS X, one option it is to use the OS X Terminal application and some of its services. Topher Kessler Oct. 18, 2013 3:41 p.m. Download Files Using Terminal. If you’ve a direct link of the file which you want to download, you can use the following commands to download the file using the Terminal on Mac. Cd /Downloads/ Note: If you want to download the contents to any other directory replace “downloads” with the directory name. Curl -O URL of file you want.

Mac

Read: 5 best ways to Password Protect folders on mac

youtube-dl Installation

1. To install, youtube-dl, you need to install Wget first. And in order to install Wget, you need to install homebrew first. So, copy paste the following command on your Mac’s terminal (press cmd + space and type in terminal). Once you run the following command, you Mac will download Homebrew master file from Github. You may have to enter your Mac’s password several times. The whole process will take 10-15 minutes depending on your Internet speed.

2. Once you have downloaded Homebrew, you are ready to install Wget. Type in the following command and also enable OpenSSL for TLS support.

3. Now that we have Wget to download packages from the internet, we will use it to download and install Youtube-dl package. Type in the following command and press enter.

4. You have now successfully installed youtube-dl on your Mac, however, it won’t work yet. To check you can type youtube-dl on your terminal and it’ll throw a permission error. To fix this, you need to give the right permissions, type in the following command and press enter.

5. And that’s it, now you should be able to download YouTube videos (or any videos from youtube-dl supported sites) by simply typing youtube-dl [video-link]. For example, to download one of my videos from YouTube, I’ll type in the following command.

youtube-dl https://youtu.be/LxTcvc4cgCY

6. You can find the downloaded video in your home folder on your mac. To bring up the home folder simply go to Finder > Go > Home or press the keyboard shortcut CMD + Shift + H.

Must Read: 10 Free macOS apps to boost your Productivity

Download 1080p video using FFmpeg

By default, FFmpeg will download the second highest resolution. You may have to install FFmpeg to get the highest quality video. Without FFmpeg, you will likely get the second highest which in our case was 720p. To install FFmpeg, type in the following command.

brew install youtube-dl ffmpeg

Also Read: 5 ways to transfer files from mac to mac

Wrapping Up

So, this is how you use youtube-dl to download videos using your terminal. The app works exactly as advertised, yet not many people know about it. Anyway, if you wish to change your download location or download different resolution of the video, you can check out youtube-dl command line parameters on Github.

Download File In Terminal Mac

youtube-dl is an Open Source command line tool that lets you download video from YouTube (and many other videos sites). It’s often considered better than those paid video downloaders. In our previous article, we saw how to use youtube-dl to download videos on Android terminal. Even Windows has a YouTube GUI client, there are no such resources available for macOS. So, in this article, we’ll give you a walkthrough on how to install youtube dl on mac. Let’s begin.

Read: 5 best ways to Password Protect folders on mac

youtube-dl Installation

Mac Os X 10.4 Download

1. To install, youtube-dl, you need to install Wget first. And in order to install Wget, you need to install homebrew first. So, copy paste the following command on your Mac’s terminal (press cmd + space and type in terminal). Once you run the following command, you Mac will download Homebrew master file from Github. You may have to enter your Mac’s password several times. The whole process will take 10-15 minutes depending on your Internet speed.

2. Once you have downloaded Homebrew, you are ready to install Wget. Type in the following command and also enable OpenSSL for TLS support.

3. Now that we have Wget to download packages from the internet, we will use it to download and install Youtube-dl package. Type in the following command and press enter.

4. You have now successfully installed youtube-dl on your Mac, however, it won’t work yet. To check you can type youtube-dl on your terminal and it’ll throw a permission error. To fix this, you need to give the right permissions, type in the following command and press enter.

Download

5. And that’s it, now you should be able to download YouTube videos (or any videos from youtube-dl supported sites) by simply typing youtube-dl [video-link]. For example, to download one of my videos from YouTube, I’ll type in the following command.

youtube-dl https://youtu.be/LxTcvc4cgCY

6. You can find the downloaded video in your home folder on your mac. To bring up the home folder simply go to Finder > Go > Home or press the keyboard shortcut CMD + Shift + H.

Download File In Terminal Mac Mojave

Must Read: 10 Free macOS apps to boost your Productivity

Download 1080p video using FFmpeg

Download File In Terminal Mac Os

By default, FFmpeg will download the second highest resolution. You may have to install FFmpeg to get the highest quality video. Without FFmpeg, you will likely get the second highest which in our case was 720p. To install FFmpeg, type in the following command.

brew install youtube-dl ffmpeg

Mac Download Command

Also Read: 5 ways to transfer files from mac to mac

Download File In Terminal Mac

Wrapping Up

So, this is how you use youtube-dl to download videos using your terminal. The app works exactly as advertised, yet not many people know about it. Anyway, if you wish to change your download location or download different resolution of the video, you can check out youtube-dl command line parameters on Github.