is there a problem with my Linux distribution? i tried to run this command using the ! symbol,but it always display an error:
echo .[!.]*
zsh: event not found: .
Am using Kali Linux.
CodePudding user response:
Try changing the bash with
exec bash
CodePudding user response:
Either escape the !
echo .[\!.]*
or use ^
instead
echo .[^.]*
Both avoid unintentionally triggering history expansion.