nerdexam
Oracle

1Z0-876 · Question #48

Click the Exhibit button. The exhibit is a listing of your current directory. You need to place the file sonic into the directory dir1 and rename the file to game, while removing the original file…

The correct answer is D. mv sonic widgets/dir1/game G. cp ./sonic ./widgets/dir1/game ; rm ./sonic. See the full explanation below for the reasoning.

Question

Click the Exhibit button. The exhibit is a listing of your current directory. You need to place the file sonic into the directory dir1 and rename the file to game, while removing the original file. Choose the commands that will accomplish this task. (Choose two.)

Exhibit

1Z0-876 question #48 exhibit

Options

  • Acp ./sonic /widgets/dir1/game ; rm sonic
  • Bmv /sonic widgets/dir1/game
  • Ccp /sonic widgets/dir1/game ; rm /sonic
  • Dmv sonic widgets/dir1/game
  • Ecp ./widgets/dir1/sonic /game; rm -r sonic
  • Fmv sonic ./dir1/game
  • Gcp ./sonic ./widgets/dir1/game ; rm ./sonic
  • Hmv /sonic /widgets/dir1/ ; rm ./sonic

How the community answered

(33 responses)
  • A
    6% (2)
  • C
    3% (1)
  • D
    79% (26)
  • E
    3% (1)
  • F
    9% (3)

Community Discussion

No community discussion yet for this question.

Full 1Z0-876 Practice