Q. Which of the following statement is true ?

  • (A) echo $$ and echo $? return some integer value of no significance
  • (B) echo $$ return PID of login shell and echo $? return status of last command
  • (C) echo $$ return status of last command and echo $? return PID of login shell
  • (D) All of the statements are false
πŸ’¬ Discuss
βœ… Correct Answer: (B) echo $$ return PID of login shell and echo $? return status of last command

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
215
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
90%
Success Rate