Problem
bash: wget: command not found
Windows
中的git-bash
相當於一個簡易版的Linux Shell
,提供了日常操作命令的支持,但是缺少一些相對高階的命令,比如遠程下載文件命令:wget
。
Solution
下載wget對應的安裝包,放到bash的執行目錄即可。
- 下載wget二進制安裝包,地址:
https://eternallybored.org/misc/wget/
,根據操作系統選擇。 - 解壓安裝包,將
wget.exe
置於X:\Program Files\Git\mingw64\bin\
目錄下
Test
其實,如果有其他命令提示bash: xxx: command not found
,可以採用相同的方式解決。
If you have any questions or any bugs are found, please feel free to contact me.
Your comments and suggestions are welcome!