mkdirremote-directory - 改变服务器上指定的文件的名字 renameold-namenew-name - 下载远程服务器上的文件 getremote-filename[local-filename] - 上传本地文件到远程服务器 putlocal-filename[remote-filename] - 删除服务器上文件 removeremote-filename&<1-10> ...
put local-filename [ remote-filename ] - 删除服务器上文件 remove remote-filename &<1-10> 一次最多可以删除十个文件。 remove与delete执行的效果是一样的。 SFTP客户端命令帮助 help [ command-name ] - 设备作为SFTP服务器,在服务器上执行一键文件传输命令,从SFTP客户端上下载文件,或者上传文...
put [-P] local-path [remote-path] 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 'comman...
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...
rmdir path Remove remote directory rm path Delete remote file symlink oldpath newpath Symlink remote file version ShowSFTPversion!command Execute'command'inlocal shell!Escape to local shell?Synonymforhelp 3.检查当前工作目录 命令lpwd用于检查Local当前工作目录,而pwd 命令用于检查Remote工作目录。
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...
directory是要查看的目录路径,如果不指定则默认为当前目录。 – 退出sftp:使用exit或quit命令退出sftp会话。 需要注意的是,sftp命令在使用过程中需要输入密码登录远程服务器,如果希望实现无密码登录,可以使用ssh公钥认证来替代密码登录。 Linux的SFTP命令是用于在本地和远程服务器之间传输文件的工具。SFTP(Secure File Tra...
格式:help [command] 说明:command指定需要有关说明的命令的名称。如果没有指定command,ftp将显示全部命令的列表。 FTP >lcd更改本地计算机上的工作目录。默认情况下,工作目录是启动ftp的目录。 格式:lcd [directory] 说明:directory指定要更改的本地计算机上的目录。如果没有指定directory,将显示本地计算机中当前的工...
sftp> get -Pr someDirectory 传输本地文件到远程服务器 使用put 命令: sftp> put localFile 结果: sftp> put app_meta_randy.tar.gz ./ Uploading app_meta_randy.tar.gz to /home/sesame/qiancj/./app_meta_randy.tar.gz 如果要传输文件夹及其内的文件,使用 put -r: sftp> put -r localDire...
* 'help' command will show available command. * In current implementation, the destination path for 'get' and 'put' * commands must be a file, not a directory. * */importjava.text.DecimalFormat;importjava.util.HashMap;importjava.util.Map;importjava.util.Properties;importjava.util.Timer;impo...