which of the following statements is true?

When the command echo $ outputs 1, which of the following statements is true?

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



Leave a Reply 4

Your email address will not be published. Required fields are marked *


Gauntlet

Gauntlet

“echo $” prints just “$”
user@LinuxMint ~ $ echo $
$

“echo $?”
prints exit value of the command executed immediately before

Z

Z

The question is not valid, it should be “echo $?” 1 is the standard failed exit code. 0 is succeed code.

quaidox

quaidox

nice one folks