Module Quiz: Command Line :Version Control (Meta React Native Specialization) Answers 2025
1. Command to print current working directory?
✔️ pwd
❌ cd
❌ cat
2. Command to search text content?
✔️ grep
❌ ls
❌ mkdir
3. Standard I/O streams (Select all correct):
✔️ stdin
✔️ stdout
✔️ stderr
(All three are standard streams.)
4. Pipes pass output of one command to another.
✔️ True
❌ False
5. Command to list files and directories?
✔️ ls
❌ cd
❌ mkdir
6. mv creates directories?
✔️ False
❌ True
(mv moves/renames files, mkdir creates directories.)
7. Flags change command behavior?
✔️ True
❌ False
8. Benefits of using the command line (Select all correct):
✔️ Automating tasks
✔️ Interacting with cloud platforms consistently
✔️ Improved performance vs GUI
❌ Automatically correct mistakes
✅ Summary Table
| Q.No | Correct Answer | Explanation |
|---|---|---|
| 1 | pwd ✔️ | Shows current directory. |
| 2 | grep ✔️ | Searches text patterns. |
| 3 | stdin, stdout, stderr ✔️ | All are standard I/O streams. |
| 4 | True ✔️ | Pipes connect commands. |
| 5 | ls ✔️ | Lists files & dirs. |
| 6 | False ✔️ | mv moves; mkdir creates. |
| 7 | True ✔️ | Flags modify command behavior. |
| 8 | Automation + cloud CLI + performance ✔️ | Real CLI advantages. |