nerdexam
LPI

300-300 · Question #98

Which of the following commands will dump the contents of a Samba printer driver's TDB file? (Choose two.)

The correct answer is B. tdbtool file.tdb dump E. tdbdump file.tdb. B (tdbtool file.tdb dump) and E (tdbdump file.tdb) are correct because Samba ships two dedicated TDB utilities: tdbdump reads a TDB file and prints all key/value records to stdout in one shot, while tdbtool is an interactive (and scriptable) TDB shell where dump is a valid…

300.6 Troubleshooting

Question

Which of the following commands will dump the contents of a Samba printer driver's TDB file? (Choose two.)

Options

  • Apdbedit --tdbdump file.tdb
  • Btdbtool file.tdb dump
  • Csmbclient --tdbdump file.tdb
  • Dtdbcat file.tdb
  • Etdbdump file.tdb

How the community answered

(45 responses)
  • A
    2% (1)
  • B
    87% (39)
  • C
    9% (4)
  • D
    2% (1)

Explanation

B (tdbtool file.tdb dump) and E (tdbdump file.tdb) are correct because Samba ships two dedicated TDB utilities: tdbdump reads a TDB file and prints all key/value records to stdout in one shot, while tdbtool is an interactive (and scriptable) TDB shell where dump is a valid subcommand that does the same thing.

A is wrong because pdbedit manages the Samba user/password database (passdb); it has no --tdbdump flag and is unrelated to printer driver TDB files. C is wrong because smbclient is a network client for connecting to SMB shares - it has no TDB inspection capability whatsoever. D is wrong because tdbcat is not a real Samba utility; it's a plausible-sounding distractor blending tdbdump and cat.

Memory tip: Think "two T's, two tools" - Tdbdump (standalone) and Tdbtool dump (interactive). Any answer that isn't a tdb* command is a red herring, since SMB client tools like smbclient and pdbedit operate at a higher abstraction layer and never touch raw TDB files directly.

Topics

#TDB files#Samba printers#tdbtool/tdbdump#Samba administration

Community Discussion

No community discussion yet for this question.

Full 300-300 Practice