首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >重音(`)符号在终端中有什么作用

重音(`)符号在终端中有什么作用
EN

Stack Overflow用户
提问于 2017-03-06 14:31:32
回答 1查看 1.7K关注 0票数 2

当我在终端中输入重音(`)符号时,结果如下所示。

代码语言:javascript
运行
复制
>
>
>

重音符号(`)是做什么用的?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-03-06 14:38:39

显示'>‘是因为shell’等待‘右引号。从手册页:

代码语言:javascript
运行
复制
Command Substitution
       Command substitution allows the output of a command to replace the com-
       mand name.  There are two forms:
          $(command)
   or
          `command`

   Bash performs the expansion by executing command and replacing the com-
   mand substitution with the standard output of  the  command,  with  any
   trailing newlines deleted.  Embedded newlines are not deleted, but they
   may be removed during word splitting.  The command  substitution  $(cat
   file) can be replaced by the equivalent but faster $(< file).
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42618946

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档