有没有办法列出 ftp 中本地目录的内容?

发布于 2024-08-26 03:48:21 字数 160 浏览 7 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

黑白记忆 2024-09-02 03:48:21

是:

!dir

! 告诉客户端运行本地 shell 命令。使用 Windows 和 Fedora 默认 ftp 客户端对此进行了测试。请注意,实际命令可能取决于您的操作系统,例如 !ls 在其他版本的 Unix/Linux 上可能是必需的。


就其价值而言,! 命令列在 ftp 客户端的帮助系统中:

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:

ftp> help !
!               escape to the shell
明月松间行 2024-09-02 03:48:21

要列出本地文件,请使用以下命令

!dir

或使用以下命令

!ls

注意: 表示本地而非远程。

lcd 正在工作,但 !cd 不工作,lpwd 不工作,但 !pwd 正在工作。

To list files locally use following command

!dir

Or use following command

!ls

Note: ! means locally not the remote.

lcd is working but !cd will not work and lpwd is not working but !pwd is working.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文