JAVA/Sun Exam Questions

In which order should they be executed?

Exhibit:

1. extract
2. add hosts
3. cd /var/tmp
4. cd /etc/inet
5. mt f /dev/rmt/On fsf 1
6. ufsrestore ivf /dev/rmt/0
7. mv /var/tmp/etc/inet/hosts /etc/inet/hosts
8. quit

The steps that should be used to interactively restore the /etc/inet/hosts file from the second ufsdump file on a tape are shown in the exhibit.

In which order should they be executed?

A.
3, 6, 4, 2, 1, 5, 7, 8

B.
3, 4, 5, 6, 2, 1, 7, 8

C.
3, 6, 5, 2, 1, 4, 8, 7

D.
3, 5, 6, 4, 2, 1, 8, 7

Explanation:

The mt command moves the tape device forward one step. The add command adds a file to be restored to the restore list. The extract command extract the files listed in the restore list. The mv command moves the restored file to the correct location