Linux下挂载Windows共享文件

Windows:
共享文件share
IP地址:192.168.1.5
用户名:test
密码:*
Linux:
创建挂载Windows共享文件的目录
mkdir /mnt/test
使用mount.cifs挂载
mount.cifs //192.168.1.5/share /mnt/test -o user=test
*输入test的密码

显示系统文件大小详情
df -h
显示系统挂载详情
mount
卸载挂载目录smb
umount /mnt/smb

猜你喜欢

转载自blog.51cto.com/1550349/2139154