SyntaxFix
Write A Post
Hire A Developer
Questions
🔍
[shell] What is the $? (dollar question mark) variable in shell scripting?
Home
Question
What is the $? (dollar question mark) variable in shell scripting?
The exit code of the last command ran.
Examples related to
shell
•
Comparing a variable with a string python not working when redirecting from bash script
•
Get first line of a shell command's output
•
How to run shell script file using nodejs?
•
Run bash command on jenkins pipeline
•
Way to create multiline comments in Bash?
•
How to do multiline shell script in Ansible
•
How to check if a file exists in a shell script
•
How to check if an environment variable exists and get its value?
•
Curl to return http status code along with the response
•
docker entrypoint running bash script gets "permission denied"
Examples related to
scripting
•
What does `set -x` do?
•
Creating an array from a text file in Bash
•
Windows batch - concatenate multiple text files into one
•
Raise error in a Bash script
•
How do I assign a null value to a variable in PowerShell?
•
Difference between ${} and $() in Bash
•
Using a batch to copy from network drive to C: or D: drive
•
Check if a string matches a regex in Bash script
•
How to run a script at a certain time on Linux?
•
How to make an "alias" for a long path?