| 
                         输入 help 命令可以查看sftp支持的命令操作: 
- sftp> help 
 - Available commands: 
 - bye Quit sftp 
 - cd path Change remote directory to 'path' 
 - chgrp grp path Change group of file 'path' to 'grp' 
 - chmod mode path Change permissions of file 'path' to 'mode' 
 - chown own path Change owner of file 'path' to 'own' 
 - df [-hi] [path] Display statistics for current directory or 
 -  filesystem containing 'path' 
 - exit Quit sftp 
 - get [-afPpRr] remote [local] Download file 
 - reget [-fPpRr] remote [local] Resume download file 
 - reput [-fPpRr] [local] remote Resume upload file 
 - help Display this help text 
 - lcd path Change local directory to 'path' 
 - lls [ls-options [path]] Display local directory listing 
 - lmkdir path Create local directory 
 - ln [-s] oldpath newpath Link remote file (-s for symlink) 
 - lpwd Print local working directory 
 - ls [-1afhlnrSt] [path] Display remote directory listing 
 - lumask umask Set local umask to 'umask' 
 - mkdir path Create remote directory 
 - progress Toggle display of progress meter 
 - put [-afPpRr] local [remote] Upload file 
 - pwd Display remote working directory 
 - quit Quit sftp 
 - rename oldpath newpath Rename remote file 
 - rm path Delete remote file 
 - rmdir path Remove remote directory 
 - symlink oldpath newpath Symlink remote file 
 - version Show SFTP version 
 - !command Execute 'command' in local shell 
 - ! Escape to local shell 
 - ? Synonym for help 
 
  
执行本地命令 
如果我们想在进入sftp会话环境下执行本地命令怎么办?只需要在本地命令之前加叹号!即可,示例如下: 
- !ls 
 
  
退出会话 
无论是在 ssh 还是 sftp,都可以使用 exit 退出当前会话,sftp 还可以使用 quit 命令退出。 
12.结语 
相信本文足以可以让你解决使用终端过程中碰到的绝大多数问题了。                          (编辑:泰州站长网) 
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! 
                     |