【问题标题】:What does it mean when a shell command starts with \ [duplicate]shell命令以\开头是什么意思[重复]
【发布时间】:2014-11-07 17:43:09
【问题描述】:

我从http://rvm.io/rvm/install找到了这些命令

为什么我们在下面的命令中需要\?

$\curl -sSL https://get.rvm.io | bash

【问题讨论】:

  • "如何在运行命令时忽略别名或函数?" -- cyberciti.biz/faq/…
  • 另请注意,将任何内容直接通过管道传输到外壳中会带来巨大的安全风险。您不想在不先检查它们的情况下执行随机命令。

标签: shell curl


【解决方案1】:

短版:这会跳过将“curl”替换为您可能已定义的别名。

您可以在此处找到更详细的答案:\curl ... | bash ... what's the slash for?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-05-25
    • 2010-12-02
    • 2019-03-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多