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 show line numbers in Nano on Mac
- How to install Jupyter Notebook on macOS Sonoma
- How to Disable Remote Management using Mac Terminal
- Test internet speed using macOS Terminal command
- Docker Desktop needs privileged access macOS
- Google Search Hot Trends Screensaver for Mac OS X
- How to do calculations in Mac Terminal
- How to make TextEdit the default text Editor on Mac
- How to Show Full Website Address on Safari for Mac (Ventura/Sonoma)
- The Zsh Shell - Mac Tutorial
- Opening mac Terminal
- How to change the name of your Mac running on macOS Ventura 13
- How to find the Battery Cycle Count on macOS Ventura
- How to set an emoji as Zsh terminal prompt in macOS
- How to access Trash Folder using Mac Terminal Command
- macOS Ventura XCode Command Line Tools Installation
- Hide Bluetooth icon on Mac Menu Bar macOS Ventura 13
- How to run .sh file in Mac Terminal
- Terminal Command to get the list of available shells in macOS
- How to see Storage Information on macOS Ventura
- How to Go To /usr/local/bin on Mac Terminal?
- How to do screen recording on Mac
- How to Find File and Directory Size in Mac Terminal
- Open .bash_profile File in TextEdit using Terminal
- Remove Now Playing icon from macOS Big Sur Menu Bar
More Posts:
- Indent XML Formatting In Notepad++ - NotepadPlusPlus
- [fix] Spring Boot Data JPA - No identifier specified for entity - Java
- Fix: Minecraft EXCEPTION_ACCESS_VIOLATION Fatal Error Java Runtime - Java
- Android [SDK Manager] The system cannot find the path specified - Android-Studio
- How to refresh Safari on Mac (macOS) using keyboard shortcut - MacOS
- [fix] java: incompatible types: double cannot be converted to java.lang.Integer Generics - Java
- MySQL #6 - Error on delete of './my-database/db.opt' (Errcode: 13 - Permission denied) - MySQL
- Change the default login shell on macOS Ventura 13.0 - MacOS