ubuntu学习记录

ubuntu学习记录

记录Ubuntu的学习

权限开放

sudo -s

共享文件夹位置

cd /
ls
cd mnt
ls
vmhgfs-fuse /mnt/hgfs
进去文件就可以了

VMware的Ubuntu中通过共享文件夹向win

  • 在 Ubuntu 中挂载共享文件夹
    sudo mkdir /mnt/hgfs
    sudo vmhgfs-fuse .host:/共享文件夹名称 /mnt/hgfs -o allow_other
  • 复制文件到共享文件夹
    cp /path/to/your/file.txt /mnt/hgfs/

win传文件到Ubuntu

  • 在Ubuntu中挂载共享文件夹
    sudo mkdir /mnt/hgfs
    sudo vmhgfs-fuse .host:/共享文件夹名称 /mnt/hgfs -o allow_other

  • 传输文件
    ls /mnt/hgfs

  • 从共享文件夹中复制文件到Ubuntu系统
    cp /mnt/hgfs/文件名 /home/yourusername/目标目录/

作者

Hau uhang

发布于

2024-08-08

更新于

2026-01-24

许可协议

评论