$$ and $! are both special variables in Unix-like operating systems$$ and $!
$$: It represents the process ID (PID) of the currently executing shell or script.d .when you want to create temporary files with unique names to avoid naming conflicts.
$!: It represents the PID of the last background process that was executed in the background using the & operator. It tracks background processes