$?

From wikieduonline
Revision as of 06:07, 9 August 2022 by Sun (talk | contribs) (→‎See also)
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: