SFTP对文件重命名 删除 退出 查看

来源:互联网 发布:php门户系统 编辑:程序博客网 时间:2024/04/29 16:46

常用命令 rename A B; ls (空格)-t;ls (空格)-lt;

                                                                         

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 [-Ppr] remote [local]  Download 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 [-Ppr] 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>                                                                          

0 0
原创粉丝点击