Network
The testparm command
Checks that the Samba configuration (smb.conf) is valid and shows the shared resources.
Copy-ready examples
$ testparmValidate smb.confYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- It needs a [global] section; shares go in brackets with their path.
FAQ
What does testparm do?
It checks that Samba's smb.conf is valid and shows the effective configuration.
When do I use it?
Before restarting Samba after editing the file.
More Network commands
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course