version control coursera week 2 quiz answers

Knowledge Check: Unix Commands

1. The options you pass to a command are known as _____________.

  • Flags
  • Chips
  • Keys

2. What command do you use to change directory?

  • pwd
  • ls
  • cd

3. What command do you use to move files and directories?

  • rm
  • mv
  • cp

4. To pass the output from one command as the input to another command, what do you use?

  • Pipes
  • Grep

5. What command do you use to create a directory?

  • cd
  • mkdir
  • pwd

Module Quiz: Command Line

6. What command do you use to print the current working directory?

  • cat
  • cd
  • pwd

7. What command do you use to search text content?

  • grep
  • mkdir
  • ls

8. Which of the following are standard input/output (I/O) streams? Select all that apply.

  • stdout
  • stderr
  • stdin

9. Pipes are used to pass the output of one command as input to another command.

  • True
  • False

10. What command do you use to list files and directories?

  • cd
  • ls
  • mkdir

11. The mv command is used to create directories.

  • False
  • True

12. Flags can be used to change the behaviour of a command.

  • True
  • False

13. Which of the following are benefits of using the command line? Select all that apply.

  • Automating tasks
  • Interacting with cloud provider platforms in a consistent way
  • Improved performance versus Graphical User Interface
  • Automatically correct mistakes in commands

Leave a Reply