nerdexam
Oracle

1Z0-409 · Question #231

The user scott issues the cp -f ~/file1 /tmp/dir2 command. Which of these statements are true about this command? (Choose all that apply.)

The correct answer is B. If /tmp/dir2 exists and is a file, it will be overwritten by file1. C. The file1 file is copied from scott's home directory to /tmp/dir2. See the full explanation below for the reasoning.

Question

The user scott issues the cp -f ~/file1 /tmp/dir2 command. Which of these statements are true about this command? (Choose all that apply.)

Options

  • AThe /root/file1 file is copied to the /tmp/dir2 directory.
  • BIf /tmp/dir2 exists and is a file, it will be overwritten by file1.
  • CThe file1 file is copied from scott's home directory to /tmp/dir2.
  • DIf /tmp/dir2 does not exist, ~/file1 will be copied as /tmp/file1.

How the community answered

(19 responses)
  • A
    16% (3)
  • B
    74% (14)
  • D
    11% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-409 Practice