Share files between Windows and Linux and Mac OS X

Source: Internet
Author: User
Tags ftp commands ftp client

How to Use smbclient

(From http://blog.csdn.net/fanlovefan/archive/2007/07/13/1688658.aspx)

1. List the Shared Folders provided by an IP address.

Smbclient-l 198.168.0.1-u username % Password
 
2. Use smbclient like an FTP Client
Smbclient // 192.168.0.1/tmp-u username % Password
 
After the smbclient command is successfully executed, enter the smbclient environment and a prompt is displayed: SMB: \>
Many Commands are similar to FTP commands, such as CD, LCD, get, megt, put, and mput. With these commands, we can access the shared resources of remote hosts.
 
3. directly use the smbclient command at one time
Smbclient-c "ls" // 192.168.0.1/tmp-u username % Password
And
Smbclient // 192.168.0.1/tmp-u username % Password
SMB: \> ls
Same functions
 
Create a shared folder
Smbclient-c "mkdir share1" // 192.168.0.1/tmp-u username % Password
If the user shares/192.168.0.1/tmp in read-only mode, a message is displayed.
Nt_status_access_denied making remote directory \ share1

Related Article

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.