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,
- Opening mac Terminal
- How to change default macOS Terminal Window size
- How to clear Mac Terminal screen
- Find Hostname of Mac running on macOS Ventura 13
- Installing MongoDB on Linux/Unix/macOS/Ubuntu
- How to switch from bash to zsh shell in macOS Terminal
- Limit scrollback rows in macOS Terminal
- How to Set Background Wallpaper on macOS 13 Ventura
- This operation couldnt be completed. Unable to locate a Java Runtime. [macOS]
- Encode or Decode Base64 String using Mac Terminal Command
- List of All Apple Silicon ARM Based M1/M2 Mac [updated Oct 2022)
- How to remove Siri from Menu Bar [macOS Big Sur]
- Must Know Homebrew Commands for Mac/Linux Users
- Hide Keyboard Text Input Icon on macOS Ventura Menu Bar
- 13.0 MacOS Ventura release date
- How to change the default location of Mac Screenshot
- How to set Out Of Office (OOO) on Outlook for Mac
- 30+ Zoom video communications application shortcuts for macOS
- How to install wget on macOS
- Mac turn dark mode on or off using terminal command
- Create Symbolic Link using Terminal Command
- Mac - How to Install VirtualBox
- How to Enable or Disable Dark Mode on macOS Ventura 13
- How to install homebrew (brew) on M1 Mac
- How to uninstall Microsoft Outlook on Mac
More Posts:
- How to Access Terminal (Command Line) in Eclipse IDE - Eclipse
- How to check installed docker version command - Docker
- How to install XML Tools Plugin Notepad++ - NotepadPlusPlus
- Create simple struts2 project using maven commands - Java
- macOS Ventura XCode Command Line Tools Installation - MacOS
- Android Studio Change SDK Path - Android
- Fix: TypeError: can only concatenate str (not int) to str in Python - Python
- How to fix: You will need Google Chrome to install most apps, extensions and themes. - Chrome