Linux smbclient command details how to use Linux smbclient command

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.