Bash 是否在命令后忽略#?

Does Bash ignore # after command?

我知道 Bash 会忽略 shell 脚本行开头的 # 字符。但是在文档中我想在文档行的末尾添加它们:

ls -l #long directory listing

万一有人复制并粘贴我写的文字信息,Bash 会忽略 # 字符后的所有内容吗?对于每个命令? (它似乎在非正式测试中有效,但参考一些明确的答案会很好。)谢谢!

是的,您可以在命令末尾使用“#”添加注释:请参考以下内容link http://tldp.org/LDP/abs/html/special-chars.html