Linux smbclient Command
The Linux smbclient command is a client program for accessing SMB/CIFS servers.
SMB and CIFS are server communication protocols commonly used in systems like Windows 95/98/NT. The smbclient (samba client) allows Linux systems to access resources shared by Windows systems.
Syntax
smbclient [network resource][password][-EhLN][-B<IP address>][-d<debug level>][-i<scope>][-I<IP address>][-l<log file>][-M<NetBIOS name>][-n<NetBIOS name>][-O<socket options>][-p<TCP port>][-R<name resolve order>][-s<directory>][-t<server code page>][-T<tar options>][-U<username>][-W<workgroup>]
Parameter Description:
[network resource] The format for [network resource] is //server name/resource share name.
[password] Enter the password required to access the network resource.
-B<IP address> The IP address used to send broadcast packets.
-d<debug level> Specifies the detail level of events recorded in the log file.
-E Sends messages to the standard error output device.
-h Displays help.
-i<scope> Sets the NetBIOS name scope.
-I<IP address> Specifies the server's IP address.
-l<log file> Specifies the name of the log file.
-L Displays all resources shared by the server.
-M<NetBIOS name> Uses the WinPopup protocol to send messages to the specified host.
-n<NetBIOS name> Specifies the NetBIOS name to be used by the client.
-N Does not ask for a password.
-O<socket options> Sets the options for the client TCP socket.
-p<TCP port> Specifies the server's TCP port number.
-R<name resolve order> Sets the order for NetBIOS name resolution.
-s<directory> Specifies the directory where smb.conf is located.
-t<server code page> Sets the code page used to interpret server file names.
-T<tar options> Backs up all shared files on the server and packages them into a tar file.
-U<username> Specifies the username.
-W<workgroup> Specifies the workgroup name.