`
xpenxpen
  • 浏览: 703703 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

用putty上传和下载

阅读更多
原文见http://crazier9527.iteye.com/blog/408610,本文仅是引用。

启动psftp.exe,和 Putty 一样是全字符界面。相对于 shell 繁多的命令,上传和下载使用的命令屈指可数,将用到的命令列在下面:

  •     open calpico.dreamhost.com 用于连接远程 linux 服务器,其中 calpico.dreamhost.com 替换为您自己的地址。
  •     cd public_html/wp-content/ 用于切换远程 Linux 服务器上的目录,其中 public_html/wp-contnt 替换为您自己实际的路径。
  •     lcd D:/downloads/ 用于切换本地的路径,其中 D:/downloads/ 就是我自己电脑里的 D:\downloads\ ,总之,切换本地路径的目的是为了上传这个目录里的文件或者将服务器上的文件下载到这个文件夹里,如果你要上传位于 C 盘 Windows 文件夹里的 notepad.exe 到服务器上,就得 lcd C:/windows/。
  •     put notepad.exe 上传 notepad.exe 到服务器上。
  •     get notepad.exe 下载 notepad.exe 到自己电脑上。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics