LPIC-3 Exam 300 v3 (Mixed Environments) — Question 6
Which of the following commands restores the previously generated backup file printers.tdb.bak into the file printers.tdb?
Answer options
- A. tdbrestore printers.tdbprinters.tdb.bak
- B. tdbrestore -o printers.tdb -i printers.tdb.bak
- C. tdbrestore printers.tdb < printers.tdb.bak
- D. tdbrestore printers.tdb -i printers.tdb.bak
- E. tdbrestore > printers.tdb < printers.tdb.bak
Correct answer: D
Explanation
The correct command is D, as it specifies the input file with the -i option and the output file is the target for restoration. Option A is incorrect because it has a syntax error, option B uses the -o flag incorrectly, option C incorrectly uses input redirection, and option E is not the proper syntax for the tdbrestore command.