300-300 · Question #48
FILL BLANK What command checks the Samba configuration file for syntactical correctness? (Specify ONLY the command without any path or parameters.) Answer: testparm
The correct answer is A. testparm. testparm is the built-in Samba utility that reads and validates smb.conf for syntax errors, printing a summary of the parsed configuration if no errors are found. It is the canonical tool for this purpose, shipped with every Samba installation, and is explicitly documented in…
Question
Options
- Atestparm
How the community answered
(28 responses)- A100% (28)
Explanation
testparm is the built-in Samba utility that reads and validates smb.conf for syntax errors, printing a summary of the parsed configuration if no errors are found. It is the canonical tool for this purpose, shipped with every Samba installation, and is explicitly documented in Samba's man pages for pre-flight configuration checks.
There are no distractors in this question - only option A is presented - so the focus is simply recognizing testparm as the correct command.
Memory tip: Think "test parameters" → testparm. Just as you'd run nginx -t to test an Nginx config, Samba gives you testparm to test its own parameters before restarting the service.
Topics
Community Discussion
No community discussion yet for this question.