Skip to content

Instantly share code, notes, and snippets.

@carlos-algms
Last active April 21, 2018 01:20
Show Gist options
  • Save carlos-algms/1d2a4cae8cd43c7d99d6c0ce05b01b38 to your computer and use it in GitHub Desktop.
Save carlos-algms/1d2a4cae8cd43c7d99d6c0ce05b01b38 to your computer and use it in GitHub Desktop.
Linux shell magic variables
variable Description
$! Last process PID
$? Last return code
$@ All paramaters passed to a script
$1, $2, $n... Direct access to parameters starting on 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment