今天用Ubuntu传递一个视频文件到小米10手机:
先看小米10设置:
选择FTP
点击右上角的配置选项:
选择utf-8编码
返回界面,点击Start server
到此手机的设置就完成了。
再看Ubuntu上
输入ftp命令,连接手机
root@wanboo-Inspiron-5570:~# ftp 192.168.1.104 2121
Connected to 192.168.1.104.
220 SwiFTP 4.1.4 ready
Name (192.168.1.104:root): wanboo
331 Send password
Password:
230 Access granted
Remote system type is UNIX.
Using binary mode to transfer files.
在交互模式下输入cd,切换到手机里的文件夹位置
ftp> cd bluetooth
250 CWD successful
ftp> pwd
257 "/bluetooth"
输入lcd切换到Ubuntu的位置
ftp> lcd /home/wanboo/视频/mp4/
Local directory now /home/wanboo/视频/mp4
传输文件
ftp> put 如同悲伤被下载了两次.mp4
local: 如同悲伤被下载了两次.mp4 remote: 如同悲伤被下载了两次.mp4
200 PORT OK
150 Data socket ready
226 Transmission complete
36433472 bytes sent in 49.39 secs (720.4086 kB/s)
这样文件就传输成功了。