| SMB与CIFS为服务器通信协议,常用于Windows95/98/NT等系统。smbclient(samba client)可让Linux系统存取Windows系统所分享的资源。 语法格式:smbclient [参数]  常用参数:  | -L | 显示服务器端所分享出来的所有资源 |  | -U | 指定用户名称 |  | -s | 指定smb.conf所在的目录 |  | -O | 设置用户端TCP连接槽的选项 |  | -N | 不用询问密码 | 
 参考实例 列出某个IP地址所提供的共享文件夹: [root@linuxcool ~]# smbclient -L 198.168.0.1 -U username%password 像ftp客户端一样使用smbclient : [root@linuxcool ~]# smbclient //192.168.0.1/tmp  -U username%password  执行smbclient命令成功后,进入smbclient环境,出现提示符:smb:/> 这里有许多命令和ftp命令相似,如cd 、lcd、get、megt、put、mput等。通过这些命令,我们可以访问远程主机的共享资源。 直接一次性使用smbclient命令:  [root@linuxcool ~]# smbclient -c "ls"  //192.168.0.1/tmp  -U username%password  或者: [root@linuxcool ~]# smbclient //192.168.0.1/tmp  -U username%password smb:/>ls  创建一个共享文件夹: [root@linuxcool ~]# smbclient -c "mkdir share1" //192.168.0.1/tmp -U username%password  |