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

本文详细介绍了SFTP协议中可用的各类命令,包括文件传输、目录操作、权限设置等,为用户提供了一个全面的操作指南。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

常用命令 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>                                                                          

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值