Return Code

Chester Wyke August 19, 2022 Updated: April 15, 2025 #bash

Source: https://linuxhint.com/bash-exit-code-of-last-command/

To check the return code of the last command use

echo Last command return code was $?