And !$ is documented here: https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash....
!! -> last whole command
!!:1 -> first argument of last command
!!:$ -> last argument of last command
!$ -> abbreviation for above