以下是SFTP命令行操作的基本指南: 基本操作 连接到SFTP服务器: sftp user@hostname 复制代码 列出当前目录中的文件: ls 复制代码 更改远程目录: cd /path/to/remote/directory 复制代码 显示当前远程目录: pwd 复制代码 更改本地目录: lcd /path/to/local/directory 复制代码 显示当前本地目录: lpwd ...
exit Quit sftp get [-P] remote-path [local-path] 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 oldpath newpath Symlink remote file lpwd Print local working d...
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 ...
Available commands:cd path Change remote directory to'path'lcd path Change local directory to'path'chgrp grp path Change groupoffile'path'to'grp'chmod mode path Change permissionsoffile'path'to'mode'chown own path Change owneroffile'path'to'own'help Displaythishelp textgetremote-path[local-path...
lcd path Change local directory to path. lls [ls-options [path]] Display local directory listing of either path or current direc- tory if path is not specified. ls-options may contain any flags supported by the local system's ls(1) command. path may contain ...
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 ...
Available commands:cd path Change remote directory to'path'lcd path Change local directory to'path'chgrp grp path Change groupoffile'path'to'grp'chmod mode path Change permissionsoffile'path'to'mode'chown own path Change owneroffile'path'to'own'help Displaythishelp textgetremote-path[local-...
格式:help [command] 说明:command指定需要有关说明的命令的名称。如果没有指定command,ftp将显示全部命令的列表。 FTP >lcd更改本地计算机上的工作目录。默认情况下,工作目录是启动ftp的目录。 格式:lcd [directory] 说明:directory指定要更改的本地计算机上的目录。如果没有指定directory,将显示本地计算机中当前的工...
lcd local_dir:进入本地目录。 pwd:显示远程当前工作目录。 lpwd:显示本地当前工作目录。 ls [remote_dir]:列出远程目录的内容。 lls [local_dir]:列出本地目录的内容。 get remote_file [local_file]:下载远程文件到本地。 put local_file [remote_file]:上传本地文件到远程。
!command:在远程服务器上执行本地命令。 lcd path:改变本地目录。 lls:列出本地目录内容。 lmkdir path:在本地创建目录。 lpwd:打印本地工作目录。 lrm file:删除本地文件。 lrmdir path:删除本地目录。 mkdir path:在远程服务器上创建目录。 pwd:打印远程工作目录。 rm file:删除远程文件。 rmdir path:删除...