首页 / 数码消费 / 正文

ubuntu 共享文件夹

时间:2024-09-25 01:02:17

ubuntu共享文件夹 

在Ubuntu系统中,可以通过以下方式访问Windows共享文件夹:

1. 使用mount命令:在Ubuntu命令行下访问Windows共享文件夹的命令是`mount -t smbfs -o username=windowsusername //windows Machine/sharefiles /mnt/localfolder`。其中,`windowsusername`是Windows用户名,`windows machine`是Windows机器名,`sharefiles`是Windows共享文件夹名。然后就可以在`/mnt/localfolder`下访问Windows内容。取消访问命令是`umount /mnt/localfolder`。

2. 使用fuse.vmhgfs-fuse文件系统:可以使用`sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other`命令将共享文件夹作为fuse.vmhgfs-fuse文件系统挂载。上述设置重启系统时会丢失,如果要在开机时自动挂载共享文件夹,则需要更改`/etc/fstab`文件,在该文件添加` .host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other.defaults 0 0`语句。

《ubuntu 共享文件夹》不代表本网站观点,如有侵权请联系我们删除

科技在线 广州云媒派信息技术有限公司 版权所有 粤ICP备2021127029号