Wednesday, October 12, 2011

07 Interesting Parameters in UNIX


07 Interesting Parameters in UNIX env..

$? –> Exit Status.

$# –> No: of arguments.

$* –> List of arguments.

$$ –> PID of current shell.

$! -–>PID of the last background process.

$- –> current shell settings.

$0 – $9 –-> Name of the command that is being executed.

No comments:

Post a Comment