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/
相关推荐
豆奶豆豆奶4 小时前
Ubuntu 中 Codex CLI 登录失败:使用 OpenAI API Key 解决
ubuntu·codex
Better Bench4 小时前
Ubuntu 22.04系统中解决运行CC-Switch-v3.16.1-Linux-x86_64.AppImage中文乱码
linux·ubuntu·claude·claude code·cc-switch
skywalk81635 小时前
在Ubuntu安装言律并部署playground web网页
linux·运维·ubuntu
ReadVersion5 小时前
Ubuntu 22.04 设置时区
linux·运维·ubuntu
来点抹茶吗7 小时前
U-Boot、内核移植与根文件系统构建(BeagleBone Green Gateway&AM335X)
linux·嵌入式硬件·ubuntu·debian
爱就是恒久忍耐21 小时前
老Ubuntu安装podman 5.x版本
linux·ubuntu·podman
奋斗的好青年1 天前
Ubuntu 修复 GRUB 引导并找回 Windows 双系统启动项(NVMe + MBR 环境)
linux·windows·ubuntu
森森-曦1 天前
在windows系统上制作启动ubuntu_22.04.5_desktop_amd64.iso启动盘
windows·ubuntu·启动盘
开发者联盟league1 天前
在ubuntu上安装harbor
linux·运维·ubuntu
MIXLLRED1 天前
Ubuntu22.04 + ROS2 Humble 安装部署 PCT Planner
ubuntu·ros2·三维路径规划·pct