gpt4 book ai didi

android - 如何获取 Cygwin 中当前工作命令的列表?

转载 作者:行者123 更新时间:2023-11-30 01:48:32 25 4
gpt4 key购买 nike

目前正在使用 linphone-android 集成。我在安装 Cygwin 期间安装了一些软件包。

当我尝试一些命令时,例如 lsrmcdwget tar 等.. 工作正常。但是像 shellclean 这样的命令很少起作用。它给出错误 command not found.

所以,我的问题是,

Is there any way to get list of working commands for Cygwin?
Is there any way to install packages for these commands rather than installing them manually?

最佳答案

在我看来,最优雅的解决方案是使用 compgen 命令:

compgen -c列出所有可用命令
compgen -a列出所有可用的别名


你也可以尝试更粗暴的方法:

使用 echo $PATH 从 cygwin 获取所有路径然后为每个文件夹执行 ls -h <folder_name>

关于android - 如何获取 Cygwin 中当前工作命令的列表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33367291/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com