The special shell variable $! expands to the process ID of the most recently executed background (asynchronous) command. In contrast, $$ represents the PID of the current shell, $# is the number of positional parameters, and $_ holds the last argument of the previous command.