Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
curl http://beyondgrep.com/ack-2.02-single-file > ~/bin/ack && chmod 0755 !#:3
!#:3from ack 安装指南是什么意思?
!#:3
在 bash 或 zsh 中!表示历史命令(不是 shebang 行,它#!与 bash 或 zsh 本身无关)。
!
#!
!#表示到目前为止键入的整个命令行,并:3选择第三个单词,在这种情况下为~/bin/ack.
!#
:3
~/bin/ack
所以该命令等价于:
curl http://beyondgrep.com/ack-2.02-single-file > ~/bin/ack && chmod 0755 ~/bin/ack