\\卷曲... |庆典......什么的斜线? [英] \curl ... | bash ... what's the slash for?

查看:95
本文介绍了\\卷曲... |庆典......什么的斜线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看着魔安装这似乎对所有类型的项目(例如,用于RVM),你会经常看到类似的命令:

looking at the magic installers which appear for all types of projects (e.g. for rvm) you'll always see commands like:

\curl ... | bash

例如

\curl -L https://get.rvm.io | bash -s stable

和我想知道为什么这些命令以斜线开头 - 他们似乎没有它运行得很好。

And I was wondering why these commands start with a slash - they seem to run fine without it.

有什么建议?

推荐答案

这是用来调用的原始的命令,避免它与可能的别名被调用。这就是说,禁用命令卷曲可能的别名,然后调整到原来的。

This is used to call the "original" command, avoiding it to be called with the possible aliases. That is, disables the possible aliases on the command curl and adjusts to the original one.

如果您有

alias grep='grep --color=auto'

然后你就的grep ,就会产生颜色。所以,如果你不想要的颜色,你只写 \\ grep的

and then you do grep, it will have colours. So if you do not want colours, you would just write \grep.

这篇关于\\卷曲... |庆典......什么的斜线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆