目前正在使用linphone-android集成。我在安装Cygwin期间安装了一些软件包。
当我尝试某些命令时,ls
,rm
,cd
,wget
,tar
等等正常运行。但很少有像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?
答案 0 :(得分:1)
在我看来,最优雅的解决方案是使用compgen命令:
compgen -c
列出了所有可用的命令
compgen -a
列出了所有可用的别名
您也可以尝试更粗野的方法:
使用echo $PATH
从cygwin获取所有路径,然后为每个文件夹执行ls -h <folder_name>
答案 1 :(得分:0)
要安装软件包,最好的方法是首先安装来自https://github.com/transcode-open/apt-cyg的apt-get: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
让安装程序下载软件包