Know your shell To know the process id of the current login shell #echo $$ To know the current Shell # ps | grep $$ Exit Status Commands return exit status where it completed successfully or not To know the exit status of the last executed command #echo $? |
Unix Scripting >