[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash commands



Daniel Danu wrote:

Hi,

Can you tell me please what $$ and $! mean ?

Thanks,
Dan



from man bash:

$ Expands to the process ID of the shell. In a () subshell, it expands to the process ID of the current shell, not the subshell. ! Expands to the process ID of the most recently executed background (asynchronous) command.


olegil@olegil:$ echo $$
426
olegil@olegil:$ echo $!
31584




Reply to: