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 systems such as Windows95/98/NT. smbclient (samba client) allows Linux systems to access resources shared by Windows systems.
Syntax
smbclient [网络资源][密码][-EhLN][-B][-d<排错层级>][-i<范围>][-I][-l<记录文件>][-M][-n][-O<连接槽选项>][-p][-R<名称解析顺序>][-s<目录>][-t<服务器字码>][-T][-U<用户名称>][-W<工作群组>]
Parameter Description:
- [network resource] The format of [network resource] is //server name/share name.
- [password] Enter the password required to access the network resource.
- -B
The IP address used when sending broadcast packets. - -d
Specify the level of detail of events recorded in the log file. - -E Send information to the standard error output device.
- -h Display help.
- -i
Set the NetBIOS name scope. - -I
Specify the IP address of the server. - -l
Specify the name of the log file. - -L Display all resources shared by the server.
- -M
The WinPopup protocol can be used to send messages to the host specified in the option. - -n
Specify the NetBIOS name to be used by the client. - -N Do not prompt for a password.
- -O
Set the TCP socket options of the client. - -p
Specify the TCP connection port number of the server. - -R
Set the order of NetBIOS name resolution. - -s
Specify the directory where smb.conf is located. - -t
Set the character code used to interpret server-side file names. - -T
Back up all files shared by the server and package them into a tar-format file. - -U
Specify the username. - -W
Specify the workgroup name.
Linux Command Reference