MCQOPTIONS
Saved Bookmarks
This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your Unix knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
To know the exit status of a command, we can use ____ |
| A. | $$ |
| B. | $* |
| C. | $? |
| D. | $- |
| Answer» D. $- | |
| 2. |
The syntax for using && is ______________ |
| A. | cmd1 && cmd2 |
| B. | cmd1 cmd2 && |
| C. | cmd1 & cmd2& |
| D. | cmd1 |
| Answer» B. cmd1 cmd2 && | |
| 3. |
When we use &&, the second command is executed only when first succeeds. |
| A. | True |
| B. | False |
| Answer» B. False | |