How do you list the number of arguments in a command line?
echo $#
How do you get the name or path of a command?
echo $0
How do you get all of the command line arguments?
echo $*
How do you get the status of the last command?
$?
How do you print the current process ID?
echo $$
What is $1, $2?
$1 is the first argument after the command name and $2 is the second argument.
How do you list ssh supported escape sequences?
echo ~?
What is $?
Status of the previous command.