Skip to content

Instantly share code, notes, and snippets.

@zhouyl
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save zhouyl/9615442 to your computer and use it in GitHub Desktop.

Select an option

Save zhouyl/9615442 to your computer and use it in GitHub Desktop.
重启 vmware 共享文件夹,以避免文件被缓存
#!/bin/bash
# Remount vmware shared folders to clear the file cache
echo -n 'Unmounting HGFS shares:'
umount /mnt/hgfs
echo -e " \033[32;49;2m[YES]\033[39;49;0m"
echo -n 'Mounting HGFS shares:'
mount -t vmhgfs .host:/ /mnt/hgfs
echo -e " \033[32;49;2m[YES]\033[39;49;0m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment