linux's docs

28.4.0: samba-smbtree命令


1. smbtree命令

smbtree,linux上的网上邻居命令


2. 使用smbtree显示局域网内共享目录

smbtree -U samba01  
Enter samba01\'s password:
WORKGROUP                           #这个是工作组的
        \\WEB03                         Samba Server Version 3.6.23-12.el6
                \\WEB03\samba01         Home Directories
                \\WEB03\IPC$            IPC Service (Samba Server Version 3.6.23-12.el6)
                \\WEB03\share-user      share for each user
......省略......
        \\GERY-PC
        \\FX-3D8D8C                #局域网的打印机
        \\FX-37AECF
        \\BUFFETPC
TONGCHIANG                          #这个是一个域
        \\YAN-PC
        \\XUBING-PC
                \\XUBING-PC\Users
                \\XUBING-PC\print$              Printer Drivers
                \\XUBING-PC\IPC$                Remote IPC
                \\XUBING-PC\F$                  Default share
                \\XUBING-PC\E$                  Default share
                \\XUBING-PC\D$                  Default share
                \\XUBING-PC\C$                  Default share
                \\XUBING-PC\ADMIN$              Remote Admin
......省略......
SEYU                                #又一个域
        \\USER04-PC
        \\USER03-PC
        \\SEYUSERVER
        \\MARCUS-PC
        \\IX2-DL-4                      Iomega StorCenter ix2-dl
                \\IX2-DL-4\IPC$                 IPC Service (Iomega StorCenter ix2-dl)
......省略......
MSHOME
        \\KIMSERVER
                \\KIMSERVER\CanoniP7            Canon iP7200 series
                \\KIMSERVER\Samsung M288x Series        Samsung M288x Series
                \\KIMSERVER\print$              Printer Drivers
                \\KIMSERVER\IPC$                Remote IPC
                \\KIMSERVER\EPSONLQ-            EPSON LQ-310 ESC/P2
        \\ADMIN                         Seyu-Admin-Acer

3. smbtree -D显示局域网内工作组及域名称

smbtree -U samba01 -D
Enter samba01\'s password:
WORKGROUP
TONGCHIANG
SEYU
MSHOME

4. smbtree -S显示局域网内用户

smbtree -U samba01 -S
Enter samba01\'s password:
WORKGROUP
        \\YAO-PC
        \\WEB03                         Samba Server Version 3.6.23-12.el6
......省略......
TONGCHIANG
        \\YAN-PC
        \\XUBING-PC
......省略......
SEYU
        \\USER04-PC
        \\USER03-PC
......省略......
MSHOME
        \\KIMSERVER
        \\ADMIN                         Seyu-Admin-Acer

Contents