Mac FTP 命令
来源:互联网 发布:石泽研究所洗面奶 知乎 编辑:程序博客网 时间:2024/06/08 14:06
FTP服务
开启和关闭服务
sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist
sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist
连接ftp服务器
格式:ftp [hostname| ip-address]
a)ftp ftp.drivehq.com
b)服务器询问你用户名和口令,输入后即可。
下载文件
下载文件通常用get和mget这两条命令。
a) get
格式:get [remote-file] [local-file]
将单个文件从远端主机中传送至本地主机中.
b) mget
格式:mget [remote-files]
将多个文件从远端主机中传送至本地主机中.
如要获取服务器上Cahce目录下的所有文件,则
ftp> cd /rCache
ftp> mget .
3.上传文件
a) put
格式:put local-file [remote-file]
将本地主机中一个文件传送至远端主机.
b) mput
将本地主机中一批文件传送至远端主机.
如要把本地当前目录下所有odt文件上传到服务器Doc目录下
ftp> cd /Doc
ftp> mput *.odt
断开连接
bye:中断与服务器的连接。
ftp> bye
另:默认的本地目录是home。
输入help即可获得所有命令的帮助。
0 0
- Mac FTP 命令
- mac 终端 使用ftp命令
- Mac 自带ftp命令
- mac 终端 使用ftp命令
- 【linux学习】mac启动ftp命令
- mac FTP
- ftp命令
- ftp命令
- ftp命令
- FTP命令
- ftp命令
- ftp命令
- FTP命令
- FTP命令
- ftp 命令
- FTP 命令
- FTP 命令
- FTP 命令
- Fast-rcnn 训练(1)-安装
- 内存学习(三)深拷贝,浅拷贝,完全拷贝
- 网页自动识别移动端js,百度的,感觉挺好用的,兼容比较广
- C7-2 多继承
- AndroidStudio快捷键汇总
- Mac FTP 命令
- storm单机环境部署
- WEB前端开发优化
- 【Apache ZooKeeper】理解ZooKeeper中的Watches
- python中sum函数
- hdu 2846 Repository(字典树)
- 算法训练 猴子分苹果
- CF388 D
- 算法之路二:刘汝佳算法竞赛入门经典:STL集合 安迪的第一个字典 UVA10851