Project Management Answers

You are using a computer running Windows PowerShell. You’re currently in the C:\Users directory. You want to copy the C:\Users\documents folder and its contents to the C:\Users\old directory. Which command could you use in the Windows CLI?

Q: You are using a computer running Windows PowerShell. You’re currently in the C:\Users directory. You want to copy the C:\Users\documents folder and its contents to the C:\Users\old directory. Which command could you use in the Windows CLI?

or

Q: On the machine you are using, Windows PowerShell is installed. Right now, you are in the C:\Users directory. The C:\Users\documents folder and all of its contents should be copied to the C:\Users\old directory. Which Windows CLI command might you use?

  • cp documents C:\Users\old\documents
  • cp documents C:\Users\old\documents -Recurse -Verbose
  • cp documents C:\Users\old
  • cp documents C:\Users\old -Recurse

Explanation: This command copies the documents folder and all of its contents (including subdirectories) to the old directory. The -Recurse flag ensures that the contents of the directory are copied recursively.

Leave a Reply

Your email address will not be published. Required fields are marked *