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/
相关推荐
Better Bench13 小时前
ubuntu20.04安全的安装可穿墙的远程软件parsec
安全·ubuntu·远程·parsec
新手村领路人13 小时前
Ubuntu18.04 libc.so.6: version `GLIBC_2.28‘ not found问题
linux·ubuntu·pycharm
奥尔特星云大使16 小时前
详细的Linux系统更新yum源的教程
linux·运维·服务器·ubuntu·centos·yum源·epel源
lht63193561216 小时前
Ubuntu Server 系统安装图形界面
linux·运维·ubuntu
christine-rr16 小时前
linux常用命令(6)——网络管理
linux·服务器·网络·ubuntu·网络安全
~黄夫人~20 小时前
Ubuntu系统快速上手命令(详细)
linux·运维·笔记·ubuntu·postgresql
发光的沙子20 小时前
FPGA----petalinux的Ubuntu文件系统移植
linux·运维·ubuntu
lili-felicity20 小时前
解决VMware Workstation Pro 17中Ubuntu 24.04无法复制粘贴
linux·运维·ubuntu
BothSavage21 小时前
Ubuntu-8卡H20服务器升级nvidia驱动+cuda版本
linux·服务器·ubuntu·gpu·nvidia·cuda·nvcc
本贾尼1 天前
Linux系统下的终端,会话,shell,bash,进程组这几个概念的关系。
linux·服务器·网络·ubuntu·bash