SMB and CIFS are server communication protocols and are commonly used in systems such as Windows 95, 98, and NT. The smbclient (samba client) allows Linux to access resources shared by Windows.
Syntax
Smbclient [network resource] [password] [-EhLN] [-B <IP address>] [-d <troubleshooting level>] [-I <range>] [-I <IP address>]
[-L <Record File>] [-M <NetBIOS name>] [-n <NetBIOS name>] [-O <connection slot option>] [-p <TCP connection port >]
[-R <name resolution sequence>] [-s <Directory>] [-t <server code>] [-T <tar option>] [-U <user name>] [-W <Working Group>]
Parameter description:
- The format of [network resources] [network resources] is // server name/resource sharing name.
- [Password] enter the password required to access network resources.
- -B <IP address> the IP address used to transmit broadcast data packets.
- -D <troubleshooting level> specifies the event details recorded in the record file.
- -E sends the information to the standard error output device.
- -H: displays help.
- -I <range> set the NetBIOS name range.
- -I <IP address> specifies the IP address of the server.
- -L <Record File> specifies the name of the record file.
- -L displays all resources shared by the server.
- -M <NetBIOS name> The WinPopup protocol can be used to send information to the host specified in the options.
- -N <NetBIOS name> specifies the NetBIOS name to be used by the client.
- -N no password required.
- -O <connection slot Options> sets the TCP connection slot options for the client.
- -P <TCP connection port> specifies the TCP connection port number of the server.
- -R <resolution sequence> sets the resolution sequence of NetBIOS names.
- -S <Directory> specifies the directory where smb. conf is located.
- -T <server code> specifies the hosts code used to parse the file name on the server.
- -T <tar option> back up all files shared by the server and package them in tar format.
- -U <user name> specifies the user name.
- -W <work group> specifies the name of the work group.