mac ~ % wget
zsh: command not found: wget
If you try the wget command on your Mac you would get a command not found error, that's because you would need to install the wget package.
How to install wget in macOS?
- Open Terminal App,
- Type command: brew install wget
If you do not have brew installed: follow this article: How to install brew on Mac (M1)
Examples: wget
@mac ~ % wget https://code2care.org
--2021-08-08 14:28:40-- https://code2care.org/
Resolving code2care.org (code2care.org)... 104.21.91.10, 172.67.164.66
Connecting to code2care.org (code2care.org)|104.21.91.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: βindex.htmlβ
index.html [ <=> ] 35.74K --.-KB/s in 0.02s
2021-08-08 14:28:40 (2.16 MB/s) - βindex.htmlβ saved [36601]
You can know more about the command by using the help "wget --help"
wget --help
GNU Wget 1.21.1, a non-interactive network retriever.
Usage: wget [OPTION]... [URL]...
Mandatory arguments to long options are mandatory for short options too.
Startup:
-V, --version display the version of Wget and exit
-h, --help print this help
-b, --background go to background after startup
-e, --execute=COMMAND execute a `.wgetrc'-style command
If you provide an invalid URL you will get an unable to resolve address error,
If you do not provide a URL you will get an error,
mac ~ % pwd
/Users/code2care
code2care@mac ~ % cd Desktop
code2care@mac Desktop % wget abc
--2021-08-08 14:31:47-- http://abc/
Resolving abc (abc)... failed: nodename nor servname provided, or not known.
wget: unable to resolve host address βabcβ
mac Desktop % wget abc
--2021-08-08 14:31:47-- http://abc/
Resolving abc (abc)... failed: nodename nor servname provided, or not known.
wget: unable to resolve host address βabcβ
More Posts related to macOS,
- How to list all users in Mac Terminal
- Docker Desktop needs privileged access macOS
- Mac: How to show count of files and folders in Finder
- How to Change Background Color TextEdit on Mac
- How to adjust MacBook Desktop icons size
- Test internet speed using macOS Terminal command
- How to change the default font and text size in Microsoft Excel for Mac
- How to install Java on macOS [Big Sur]
- How to come out of dquote prompt in Terminal - macOS/Linux
- How to Increase MacBook Trackpad Cursor Speed on macOS Ventura/Sonoma
- Fix: Microsoft Excel Quit Unexpectedly on Mac
- How to Adjust macOS System Font Size
- How to Quit Applications on Mac Using Terminal
- How to check zsh installed version using terminal
- Two Ways to Extract rar (*.rar) files on Mac
- How to Right Click on Mac Desktop?
- How to Add Brew to PATH M1/M2 Mac
- How to search (find) in macOS Terminal Console Text
- macOS 13 Ventura - The New About this Mac Window
- TextEdit Get the count of lines in a file
- How to run .sh file in Mac Terminal
- Google Search Hot Trends Screensaver for Mac OS X
- Check Reboot History Mac
- [Solution] Mac Update Stuck Preparing macOS Ventura 13.0 About 30 minutes remaining
- Display Safari URL address link on hover
More Posts:
- How to Create a File using PowerShell on Mac - Powershell
- Switch between Python 2.x 3.x versions in Mac Terminal - MacOS
- hibernate.cfg.xml Configuration and Mapping xml Example - Java
- A Collection of Bootstrap Buttons Examples and Code - Bootstrap
- How to come out of Full Screen Mode Roblox on Mac - MacOS
- Create Your Custom Meme Online (Free - No Watermark)! - Tools
- Tesla hit by a complete network and mobile app outage - 23 Sept 2020 11am ET (US and Europe) - News
- [fix] How to Show file extensions on all files on Mac - MacOS