English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

The Linux smbclient command

Linux Command大全

The Linux smbclient command can access SMB/CIFS server user-side programs.

SMB and CIFS are server communication protocols commonly used in Windows95/98/NT and other systems. The smbclient (samba client) allows Linux systems to access resources shared by Windows systems.

Syntax

smbclient [network resource][password][-EhLN][-B<IP address>][-d<error level>][-i<range>][-I<IP address>][-l<log file>][-M<NetBIOS name>][-n<NetBIOS name>][-O<connection slot options>][-p<TCP connection port>][-R<name resolution order>][-s<directory>][-t<server code>][-T<tar option>][-U<user name>][-W<Work Group>]

Parameter Description:

  • [Network Resource] The format of [Network Resource] is//Server Name/Resource Sharing Name.
  • [Password] Enter the password required to access network resources.
  • -B<IP Address> The IP address used to send broadcast packets.
  • -d<Debug Level> Specify the detail level of the events recorded in the log file.
  • -E Send information to the standard error output device.
  • -h Display help.
  • -i<Range> Set the NetBIOS name range.
  • -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 side.
  • -M<NetBIOS Name> Can use the WinPopup protocol to send information to the host specified in the option.
  • -n<NetBIOS Name> Specify the NetBIOS name to be used on the client side.
  • -N Do not ask for a password.
  • -O<Connection Slot Options> Set the options for the TCP connection slot on the client side.
  • -p<TCP Connection Port> Specify the number of the TCP connection port on the server side.
  • -R<Name Resolution Order> Set the order of NetBIOS name resolution.
  • -s<Directory> Specify the directory where smb.conf is located.
  • -t<Server Code> Set the character code used to parse the file name on the server side.
  • -T<tar Options> Backup all files shared on the server and package them into a tar format file.
  • -U<Username> Specify the username.
  • -W<Work Group> Specify the name of the work group.

Linux Command大全