看见 nodejs nvm 的安装命令: https://github.com/nvm-sh/nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
or Wget:
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
curl 的 -o 是输出到某个文件,-o- 是输出到 stdout 吗,这和不加任何参数有什么区别? wget 倒是可以理解,因为它默认是输出到文件的。
(另外,看到很多程序远程安装都提供 curl 和 wget 两个版本,是不是有些系统默认不支持 curl 或者不好用?)