I installed a vmware in windows11, because sometimes I need to use linux to compile the program. After I installed the rocky linux, I added a share folder on vmware, and I installed some applicaitons in that folder, but when I restarted the linux operating system, the share folder disappeared, I tried to remove the share folder and add it again, but it doesn’t work, so I have to research it.
After searching on the internet, I found a command which works.
vmhgfs-fuse .host:/ /mnt/hgfs
For I don’t want to execute that command after restart the operating system everytime, I put it into /root/.bashrc.