activesince93
activesince93

Reputation: 1736

How to get list of currently working commands in Cygwin?

Currently working with the linphone-android integration. I have installed some packages during installation of Cygwin.

When I try some of the commands like ls, rm, cd, wget, tar and etc.. are working fine. But few commands like shell, clean are not working. It gives error command not found.

So, my question is,

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?

Upvotes: 2

Views: 1231

Answers (2)

Viorel Mirea
Viorel Mirea

Reputation: 409

For installing a package the best way is to install first the equavalent of apt-get: apt-cyg from https://github.com/transcode-open/apt-cyg and put it in /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> You can also try running the setup executable used to install cygwin setup.exe -q -n -N -d -R c:\cygwin -s http://mirror_site_to_use -l c:\local_package_folder for a local package or setup.exe -q -P package_name to let the setup download the package

Upvotes: 0

Viorel Mirea
Viorel Mirea

Reputation: 409

In my opinion the most elegant solution is to use the compgen command:

compgen -c lists all the available commands
compgen -a lists all the available aliases


You can also try a more brute approach:

Get all the paths from cygwin using echo $PATH and then for each folder execute ls -h <folder_name>

Upvotes: 2

Related Questions