# 将远程当前路径下的a.txt文件下载到本地当前路径下
get a.txt
# 查看本地当前路径下是否存在已下载文件
lls
6. 上传文件到远程
# 将本地当前路径下的a.txt文件上传到远程当前路径下
put a.txt
# 查看远程当前路径下是否存在已上传文件ls
7. 退出sftp
exit
quit
bye
#三者皆可
8. 查看帮助
help
# 结果如下
bye finish your SFTP session
cd change your remote working directory
clear clear screen
exit finish your SFTP session
explore explore your local directory
get download a file from the server to your local machine
help give help
lcd change and/or print local working directory
lls list contents of a local directory
lpwd print your local working directory
ls list contents of a remote directory
mkdir create a directory on the remote server
mvmove or rename a file on the remote server
put upload a file from your local machine to the server
pwd print your remote working directory
quit finish your SFTP session
rename move or rename a file on the remote server
rm delete a file
rmdir remove a directory on the remote server