# 查看远程机器上的共享文件夹
[root@localhost ~]# smbclient -L //192.168.0.36
Password:
Domain=[SERVER36] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
IPC$ IPC 远程 IPC
tools Disk
session request to 192.168.0.36 failed (Called name not present)
session request to 192 failed (Called name not present)
Domain=[SERVER36] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Server Comment
--------- -------
Workgroup Master
--------- -------
# 挂载文件夹到/mnt/hgfs目录下
[root@localhost ~]# mount //192.168.0.36/tools /mnt/hgfs
Password:
# 转到/mnt/hgfs目录下进行查看
[root@localhost ~]# cd /mnt/hgfs/
[root@localhost hgfs]# ls -a
.
..
java
# 解除挂载 不加 -l 可能会有 busy 的信息,注意:在挂载目录下解除不了挂载,所在要先转换目录
[root@localhost hgfs]# cd ..
[root@localhost mnt]# umount -l /mnt/hgfs/