10 Amazing and Mysterious Uses of '!' Symbol in GNU/Linux

If you are a programmer, you might have used ! symbols several times in your program. (Any exceptions?!! Then Please Let me know :) ). Here is an article by Avishek Kumar, published in tecmint magazine that lists, 10 wonderful, amazing and mysterious uses of ! symbol in GNU/Linux command line.


The '!' symbol or operator in Linux can be used as Logical Negation operator as well as to fetch commands from history with tweaks or to run previously run command with modification. All the commands below have been checked explicitly in bash Shell. Though I have not checked but a major of these won’t run in other shell. Here we go into the amazing and mysterious uses of '!' symbol or operator in Linux commands.

Share this