\curl -L https://get.rvm.io | bash -s stable
为什么命令以\
开头?
This is the site where I saw it.
最佳答案
alias curl='curl --some --default --options'
如果您有 curl
的别名并且不想使用它,在前面加上反斜杠可以禁用别名并直接运行 curl 二进制文件。
请注意,这仅适用于交互式 shell。别名在脚本中不会生效,因此在那里没有必要。
关于bash - 为什么用反斜杠启动 shell 命令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15691977/