When the command echo $ outputs 1, which of the following statements is true?
A.
It is the process ID of the echo command.
B.
It is the process ID of the current shell.
C.
It is the exit value of the command executed immediately before echo.
D.
It is the exit value of the echo command.
Explanation:
answer is valid
“echo $” prints just “$”
user@LinuxMint ~ $ echo $
$
“echo $?”
prints exit value of the command executed immediately before
The question is not valid, it should be “echo $?” 1 is the standard failed exit code. 0 is succeed code.
True mate
nice one folks