在 CentOS(以及大多数 Linux 发行版)里,反引号(` `)本身不是命令,而是 Shell 的语法,用于命令替换(command substitution)。
所以你查的不是“反引号命令”,而是 Shell 手册中关于命令替换的说明。
下面给你几种查法,从常用到深入。
CentOS 默认用 bash:
man bash
然后在里面搜索:
command substitution
操作方式(进入 man 后):
/command substitution
按 n 看下一个
你会看到类似说明:
A command substitution is of the form
commandor $(command)
man bash | grep -A 10 "command substitution"
info bash
搜索:
command substitution
反引号是 POSIX 标准语法:
man sh
或在线搜:
POSIX command substitution backtick
echo "今天是 `date`"
等价于:
echo "今天是 $(date)"
✅ $( ) 是推荐写法,可读性更好,支持嵌套。
可以直接问 Shell:
help command_substitution
(bash 内建帮助,不一定所有版本都有)
CentOS 中反引号不是命令,查手册用:
man bash
然后搜 command substitution
如果你愿意,我也可以帮你对比 `cmd` 和 $(cmd) 的区别,或者讲嵌套用法。