Heartsuit's Simple Blog

A place to hold mainly reading notes, and some technical stuff occasionally. 这里主要是一些读书笔记、感悟;还有部分技术相关的内容。


Project maintained by heartsuit Hosted on GitHub Pages — Theme by mattgraham

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


「说点什么吧😊~~😊」: