Linux Error: -bash: !“: event not found [How to Solve]

When executing the following code in Linux environment, the example is as follows:

Return result:
– bash:! xxxxxxxxx: event not found

The reason is:
the input command contains!, Exclamation mark, can’t constitute command, should be! It can be solved by escaping and adding the reverse symbol of “\”, and similar problems in other shell commands can be solved in the same way

Similar Posts: