Linux smbclient command
The Linux smbclient command is a client program that can access SMB/CIFS servers.
SMB and CIFS are server communication protocols, commonly used in Windows 95/98/NT systems. smbclient (samba client) allows Linux systems to access resources shared by Windows systems.
Syntax
smbclient [网络资源][密码][-EhLN][-B<IP地址>][-d<排错层级>][-i<范围>][-I<IP地址>][-l<记录文件>][-M<NetBIOS名称>][-n<NetBIOS名称>][-O<连接槽选项>][-p<TCP连接端口>][-R<名称解析顺序>][-s<目录>][-t<服务器字码>][-T<tar选项>][-U<用户名称>][-W<工作群组>]
Parameter Description:
- [Network Resource] The format of [network resource] is //server name/shared resource name.
- [Password] Enter the password required to access the network resource.
- -B<IP Address> The IP address used when transmitting broadcast packets.
- -d<Debug Level> Specify the level of detail for events recorded in the log file.
- -E Send information to the standard error output device.
- -h Display help.
- -i<Scope> Set the NetBIOS name scope.
- -I<IP Address> Specify the IP address of the server.
- -l<Log File> Specify the name of the log file.
- -L Display all resources shared by the server.
- -M<NetBIOS Name> Can use the WinPopup protocol to send messages to the host specified in the option.
- -n<NetBIOS Name> Specify the NetBIOS name to be used by the client.
- -N Do not ask for a password.
- -O<Connection Socket Options> Set the client TCP connection socket options.
- -p<TCP Port> Specify the server-side TCP port number.
- -R<Name Resolution Order> Set the order of NetBIOS name resolution.
- -s<Directory> Specify the directory where smb.conf is located.
- -t<Server Codepage> Set which character code to use to parse server-side file names.
- -T<tar Options> Back up all files shared by the server and package them into a tar format file.
- -U<Username> Specify the username.
- -W<Workgroup> Specify the workgroup name.
Linux Command Encyclopedia