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 22.04 /etc/fstab 文件修改有误导致无法进入系统处理
linux·运维·ubuntu
天疆说1 小时前
Ubuntu 安装微软核心字体
ubuntu·microsoft·php
XX風1 小时前
三维点云处理环境相关-ubuntu安装numpy、open3d
linux·ubuntu·numpy
乌托邦的逃亡者1 小时前
Ubuntu主机中,为一个网卡设置多个IP地址
服务器·网络·ubuntu
Wmenghu2 小时前
Ubuntu 安装 MySQL 8.0 + Redis 并开启远程访问
redis·mysql·ubuntu
Ujimatsu12 小时前
虚拟机安装Debian 13.x及其常用软件(2026.4)
linux·运维·ubuntu
拾贰_C14 小时前
【Agent | openai | Streaming | 】流式输出Streaming
ubuntu·面试·prompt
刘延林.17 小时前
win11系统下通过 WSL2 安装Ubuntu 24.04 使用RTX 5080 GPU
linux·运维·ubuntu
用户342688776219620 小时前
Agent + Ollama 部署踩坑记录
ubuntu
宁波阿成20 小时前
在ubuntu22.04源码级安装sub2api
linux·运维·ubuntu·ai·api·token·中转站