$?

From wikieduonline
Revision as of 06:06, 9 August 2022 by Sun (talk | contribs) (→‎Examples)
Jump to navigation Jump to search
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: