2015-10-27 39 views
1

目前正在使用linphone-android集成。我在安装Cygwin时已经安装了一些软件包。如何获取Cygwin当前正在运行的命令列表?

当我尝试一些像lsrmcdwgettar和等命令的..工作正常。但像shell,clean这样的命令不起作用。它给错误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? 

回答

1

在我看来,最好的解决方法是使用compgen命令:

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


你可以als Ø尝试更强力的方法:

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

+0

所以基本上它返回“/ cygdrive/c/cygwin64/bin”中的所有文件文件夹中。谢谢! – activesince93

+0

如果您有其他问题的答案,这将会非常有帮助。 – activesince93

+0

它显示该文件夹中的可执行文件以及/ cygdrive/c/cygwin/usr/local/bin中的可执行文件 –

0

对于安装包最好的办法是先安装apt-get的的equavalent:易-CYG从https://github.com/transcode-open/apt-cyg并把它在/ usr/local/bin目录:
wget raw.github.com/transcode-open/apt-cyg/master/apt-cyg<br> chmod +x apt-cyg<br> mv apt-cyg /usr/local/bin<br> 您也可以尝试运行用于安装cygwin setup.exe -q -n -N -d -R c:\cygwin -s http://mirror_site_to_use -l c:\local_package_folder为本地包或setup.exe -q -P package_name的安装可执行文件,让安装程序下载软件包

+0

由于DMCA删除,似乎apt-cyg存储库不可用 相反,您可以从https: //github.com/svnpenn/sage,它可以像apt-cyg一样使用 –

相关问题