尝试在bash
shell echo“重启你的实例!”下执行以下命令.
在我的安装上:
root@domU-12-31-39-04-11-83:/usr/local/bin# bash --version GNU bash,version 4.1.5(1)-release (i686-pc-linux-gnu) Copyright (C) 2009 Free Software Foundation,Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software; you are free to change and redistribute it. There is NO WARRANTY,to the extent permitted by law. root@domU-12-31-39-04-11-83:/usr/local/bin# uname -a Linux domU-12-31-39-04-11-83 2.6.35-22-virtual #35-Ubuntu SMP Sat Oct 16 23:57:40 UTC 2010 i686 GNU/Linux root@domU-12-31-39-04-11-83:/usr/local/bin# echo "Reboot your instance!" -bash: !": event not found
任何人都可以解释什么是“bash事件?”我以前从未听过这个概念.另外,我该怎么输出“!”在句末?
解决方法
您可以使用集合H关闭历史记录替换.