Which of the following commands would return process_id of sleep command?
A. Sleep 1 and echo $?
B. Sleep 1 and echo $#
C. Sleep 1 and echo $x
D. Sleep 1 and echo $!
Answer:D
Which of the following commands would return process_id of sleep command?
A. Sleep 1 and echo $? B. Sleep 1 and echo $# C. Sleep 1 and echo $x D. Sleep 1 and echo $!