Built in shell variables


Built-in shell variables.

VariableUse
$#Stores the number of command-line arguments that were passed to the shell program.
$?Stores the exit value of the last command that was executed.
$0Stores the first word of the entered command (the name of the shell program).
$*Stores all the arguments that were entered on the command line ($1 $2 ...).
"$@"Stores all the arguments that were entered on the command line, individually quoted ("$1" "$2" ...).

Comments

Popular posts from this blog

Makefile Tutorial

Creating shortcut commands in terminal using .bashrc file

Turbo C for 64 bit windows 7