pbhj,
! is an event designator used in history expansion for bash.
there is a wealth of documentation for bash.
that just scratched the surface...
you can search the man pages for 'event designators' and it will bring you directly to
! paging up from there will explain
HISTORY EXPANSION
: is a under
SHELL BUILTIN COMMANDS discussed after
!
hope this helps
many happy hours of reading
[EDIT:
cleaned up spacing]