smbclient

From RaySoft

smbclient is a client that can 'talk' to an SMB/CIFS server. It offers an interface similar to that of the ftp program. Operations include things like getting files from the server to the local machine, putting files from the local machine to the server, retrieving directory information from the server and so on.[1]

Documentation

Syntax

smbclient [SERVICE] [PARAMETER ...]

Parameters

-L
This option allows you to look at what services are available on a server. You use it as smbclient -L host and a list should appear. The -I option may be useful if your NetBIOS names don't match your TCP/IP DNS host names or if you are trying to reach a host on another network.
-U USERNAME[%PASSWORD], --user=USERNAME[%PASSWORD]
Sets the SMB USERNAME or USERNAME and PASSWORD.
If %PASSWORD is not specified, the user will be prompted. The client will first check the USER environment variable, then the LOGNAME variable and if either exists, the string is uppercased. If these environmental variables are not found, the username 'GUEST' is used.

References

  1. man 1 'smbclient'