BASH special variables

Published: Friday, 14 April 2006
Last modified: Thursday, 4 June 2020
shell

BASH Built in special variables

Variable Description
$? return code of the previous command
$$ current process id (pid)