QuestionQ22

Finding Your Way on a Linux System

Which command copies the contents of the /etc/ directory, including every subdirectory, into /root/?

  • A copy /etc /root
  • B cp -r /etc/* /root
  • C cp -v /etc/* /root
  • D rcp /etc/* /root
  • E cp -R /etc/. /root
Explanation

The cp -r command recursively copies directory trees. With /etc/* as the source pattern, it copies the entries inside /etc/ into /root/, including their subdirectories and files.

Community Discussion

No comments yet. Be the first to start the discussion!