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/
相关推荐
衫水16 小时前
ubuntu系统如何检查和安装以及运行redis
redis·ubuntu·bootstrap
HIT_Weston19 小时前
100、【Ubuntu】【Hugo】搭建私人博客:元信息&翻译(一)
linux·运维·ubuntu
Mr. Cao code19 小时前
Docker匿名数据卷实战指南
运维·ubuntu·docker·容器
奔跑的花短裤21 小时前
ubuntu安装Isaac sim4.5与强化学习使用
linux·ubuntu·机器人·强化学习·isaac sim·isaac lab
HIT_Weston1 天前
101、【Ubuntu】【Hugo】搭建私人博客:元信息&翻译(二)
linux·运维·ubuntu
天边一坨浮云1 天前
Ubuntu(PC)遇到的各种问题-EXT4-fs(vdb): VFS: Can‘t find ext4 filesystem
linux·ubuntu
黎陌MLing1 天前
PVE安装Ubuntu操作系统详细过程
linux·数据库·ubuntu
ICT董老师1 天前
Kubernetes从私有镜像仓库拉取容器镜像时的身份验证
ubuntu·docker·云原生·容器·kubernetes
匀泪1 天前
CE(Ubuntu)
linux·运维·ubuntu
dawei.wang1 天前
Ubuntu22.04降级内核版本
ubuntu