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/
相关推荐
我是哈哈hh19 小时前
【MySQL】在UBuntu环境安装以及免密码登录入门
linux·数据库·mysql·ubuntu
clever1012 天前
在ubuntu系统上离线安装jenkins的做法
ubuntu·servlet·jenkins
Nie_Xun2 天前
ubuntu网络共享
linux·运维·ubuntu
wuicer3 天前
ubuntu 20.04 安装anaconda以及安装spyder
linux·运维·ubuntu
shuangrenlong3 天前
ubuntu更新chrome版本
linux·chrome·ubuntu
基于python的毕设3 天前
C语言栈的实现
linux·c语言·ubuntu
穷人小水滴3 天前
在 windows 运行 flatpak 应用 (WSL)
linux·windows·ubuntu
mit6.8243 天前
ubuntu远程桌面很卡怎么解决?
linux·ubuntu·php
morliz子轩4 天前
基于WSL搭建Ubuntu 22.04.x LTS开发环境
linux·运维·ubuntu
路多辛4 天前
Debian新一代的APT软件源配置文件格式DEB822详解
linux·运维·ubuntu·debian