john@john-virtual-machine:/mnt/hgfs$ cat /etc/issue
Ubuntu 20.04.6 LTS \n \l
看下是否挂载
john@john-virtual-machine:/mnt/hgfs$ vmware-hgfsclient
FPGAs_AdaptiveSoCs_Unified_2023.2_1013_2256
xilinx
取消挂载
john@john-virtual-machine:/mnt/hgfs$ sudo umount /mnt/hgfs
[sudo] password for john:
umount: /mnt/hgfs: not mounted.
sudo umount /mnt/hgfs
指定用户和组挂载
john@john-virtual-machine:/mnt/hgfs$ sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other -o uid=1000 -o gid=1000 -o umask=022
john@john-virtual-machine:/mnt/hgfs$ ls
再重新打开终端刷新就可以看到了