有没有办法列出 ftp 中本地目录的内容?
lcd
更改本地目录。
ls
列出远程目录上的文件。
我想要的是lls
,列出本地目录上的文件。
这可能吗?
我知道我总是可以打开另一个终端来执行此操作,但我很懒!
lcd
changes local directories.
ls
lists files on remote directory.
What I would like is lls
, to list files on local directory.
Is this possible?
I know I can always open another terminal to do this, but I'm lazy!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是:
!dir
!
告诉客户端运行本地 shell 命令。使用 Windows 和 Fedora 默认 ftp 客户端对此进行了测试。请注意,实际命令可能取决于您的操作系统,例如!ls
在其他版本的 Unix/Linux 上可能是必需的。就其价值而言,
!
命令列在 ftp 客户端的帮助系统中:Yes:
!dir
The
!
tells the client to run a local shell command. Tested this using both the Windows and Fedora default ftp clients. Note that the actual command may depend upon your OS, for example!ls
may be necessary on other versions of Unix/Linux.For what it's worth, the
!
command is listed in the ftp client's help system:要列出本地文件,请使用以下命令
或使用以下命令
lcd 正在工作,但 !cd 不工作,lpwd 不工作,但 !pwd 正在工作。
To list files locally use following command
Or use following command
lcd is working but !cd will not work and lpwd is not working but !pwd is working.