可能重复:
Bash:如何为多行命令添加行注释
我想做这样的事情
sudo apt-get install \
#a very long description
#of the package
#that spans multiple lines
pkg1 \ #maybe I want an inline comment also
#another description that
#spans multiple lines
pkg2
请注意,我不仅对apt-get
命令感兴趣。