在Windows上的git-bash下安裝wget

Problem

bash: wget: command not found

Windows中的git-bash相當於一個簡易版的Linux Shell,提供了日常操作命令的支持,但是缺少一些相對高階的命令,比如遠程下載文件命令:wget

Solution

下載wget對應的安裝包,放到bash的執行目錄即可。

2020-02-20-Wget-Url.png

  1. 下載wget二進制安裝包,地址:https://eternallybored.org/misc/wget/,根據操作系統選擇。
  2. 解壓安裝包,將wget.exe置於X:\Program Files\Git\mingw64\bin\目錄下

Test

2020-02-20-Wget-Test.jpg

其實,如果有其他命令提示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!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章