在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!

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