在linux虚拟机中写好了代码,如何复制到主机中呢。 可以使用发邮件的方法: mail -s "server.cpp" 123456789@qq.com -a /home/name/server.cpp 主题 目标邮箱 附件