• $0: name of the script
  • $1 to $9, arguments to the script. $1 is the first argument and so on.
  • $@: all the arguments
  • $#: number of arguments
  • $?: return code of the previous command
  • $$: process identification number (PID) for the current script

FYI: