重音符号 (`) 在终端中的作用是什么
What does Grave accent (`) symbol do in terminal
当我在终端中输入重音符号 (`) 时,如下所示。
>
>
>
重音符号 (`) 有什么作用?
显示'>'是因为shell 'waits'为收盘价。
来自手册页:
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).
当我在终端中输入重音符号 (`) 时,如下所示。
>
>
>
重音符号 (`) 有什么作用?
显示'>'是因为shell 'waits'为收盘价。 来自手册页:
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).