List open shares and connected clients on a Samba server
On the Samba server itself, smbstatus -S shows every share currently in use and which client is connected to it. The -L variant lists byte-range locks held by clients. Run it when a file cannot be deleted because someone has it open over the network.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.