Difference between revisions of "$?"

From wikieduonline
Jump to navigation Jump to search
Line 15: Line 15:
  
 
== See also ==
 
== See also ==
 +
* {{exit}}
 
* {{set}}
 
* {{set}}
 
* {{Bash}}
 
* {{Bash}}
  
 
[[Category:Bash]]
 
[[Category:Bash]]

Revision as of 06:07, 9 August 2022

echo $?


Examples

mkdir -p /path/to/root/in/macos
mkdir: cannot create directory ‘/path’: Read-only file system
-p, --parents makes parents directories if needed and no error if existing

echo $?
1

Related

See also

Advertising: