VMware Ubuntu与windows 宿主机与虚拟机文件传输 (命令行) 【一只公羊】

从Windows主机向Ubuntu发送/获取文件

1. 获取Ubuntu的IP地址

bash 复制代码
ifconfig

2. Windows获取文件

bash 复制代码
scp carlos@192.168.245.129:/home/carlos/ubuntu_file.txt ./

3. Windows发出文件

bash 复制代码
scp ./windows_file.txt carlos@192.168.245.129:/home/carlos/

从Ubuntu主机向Windows发送/获取文件

1. 获取Windows的IP地址

复制代码
ipconfig

注意 : 在Windows上是ipconfig,而在Ubuntu是ifconfig.

2. Ubuntu获取文件

bash 复制代码
scp 123456@192.168.0.102:D:/scp_test/Windows_file1.txt ./

3. Ubuntu发出文件

bash 复制代码
scp /home/carlos/ubuntu_file1.txt 123456@192.168.0.102:D:/scp_test/
相关推荐
小小的木头人3 分钟前
Ubuntu 26.04 换阿里云镜像源
linux·ubuntu·阿里云
qq_254674418 分钟前
Ubuntu 20.04取消自动休眠的三种实现方案
linux·chrome·ubuntu
LuDvei38 分钟前
Windows x86 架构下 Ubuntu 虚拟机内打包 Qt 文件指南
windows·qt·ubuntu
ghking13 小时前
ubuntu下部署大模型显存被其它程序占用问题解决
ubuntu·大模型·gnome·nvidia-smi·xorg·remote-desktop
灰灰老师3 小时前
Ubuntu 24.04 使用 Nginx + Docker Tomcat9 + HTTPS 完整部署教程
nginx·ubuntu·docker
WL_Aurora5 小时前
CentOS vs Ubuntu
linux·ubuntu·centos
BatyTao5 小时前
Ubuntu下载地址
linux·运维·ubuntu
东风微鸣5 小时前
从 Windows 11 迁移到 Ubuntu 26.04:双系统安装与体验记录
linux·windows·ubuntu
LuDvei1 天前
ubuntu环境下qt打包
linux·数据库·qt·ubuntu
用户6757049885021 天前
改了DNS还是不生效?Ubuntu 24.04的这个坑我帮你踩过了
后端·ubuntu·dns