What information is held inside $?

What information is held inside $?Category: Linux EssentialsAuthor "LinuxQuestions"What information is held inside $?
Linux Questions Staff asked 1 year ago

What information is held inside $?

  • The current process id
  • The number of arguments passed to the script
  • The current user ID
  • The previous command’s exit code
  • The name of the command run

About the author