smbclient Command Examples

FTP-like client to access SMB/CIFS resources on servers. More information: https://manned.org/smbclient.

smbclient {{//server/share}}

smbclient {{//server/share}} --user {{username}}

smbclient {{//server/share}} --workgroup {{domain}} --user {{username}}

smbclient {{//server/share}} --user {{username%password}}

smbclient {{//server/share}} --directory {{path/to/directory}} --command "get {{file.txt}}"

smbclient {{//server/share}} --directory {{path/to/directory}} --command "put {{file.txt}}"

smbclient --list={{server}} --no-pass