Web Commands
curl | Download web pages and files. |
wget | Download multiple web pages and files. |
Your Mac comes with a web browser, Safari, and you can also install
Firefox, Google Chrome, or other third party browsers. Through the
Terminal, however, you can interact with the web in other ways. The two
commands we cover, curl
and wget
, can both hit web pages and download files
from the command line, but they have different features and
advantages.
As a reminder, you can open any URL from the command line, launching
your default web browser, with the open
command, as we saw in Controlling Processes:
➜ open http://
... Any URL
Get Macintosh Terminal Pocket Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.