The exit status of the last command executed is stored in the _________ variable.
- $!
- $@
- $?
- $_
The exit status of the last command executed is stored in the $? variable. This value is important for checking whether a command or script ran successfully (0) or encountered an error (non-zero).
Loading...
Related Quiz
- Which tool enforces mandatory access controls at the kernel level in Linux?
- What is the primary role of the System Call Interface in the Linux kernel?
- The _________ command provides a bird's-eye view of the system's current resource usage, including CPU, RAM, and swap.
- What is the primary difference between ext4 and ext3 file systems?
- Which daemon in Linux is responsible for logging system messages?