How to list installed programs at commandline in Windows

To list all the installed programs at the commandline in Windows, use this command: wmic product

A lot of parameters are listed for every product. Some of the parameters are: name, description, URL, telephone number (not kidding!), ID, installed date, installed directory, source directory from which it was installed, language, name of installer file, vendor and version.

With so many parameters, the output for each prorgram simply cannot fit on a single line. So, it is better to redirect it to a file: wmic product > proglist.txt

Tried with: Windows 7 x64

Advertisements

How to have a commandline dictionary using StarDict

If you spend a lot of time at the shell, you might prefer to look up the meaning of words from the commandline, rather than from a GUI program or in the browser. This can be done using the Console Version of StarDict program.

Install SDCV

The Console Version of StarDict program can be installed using the package name sdcv. No dictionaries or resources are installed along with it.

Install dictionaries

You can find dictionaries that are English-English or between any two languages, encyclopedias, thesaurus or etymology sources online that can be installed to work with sdcv. For example, a few of such dictionaries can be found here.

To install a dictionary, first create the /usr/share/stardict/dic directory, if it does not exist. After that, unzip the dictionary file and copy that directory to /usr/share/stardict/dic You will need superuser privileges to do this.

Usage

You can list the dictionaries that are installed using:

$ sdcv --list-dicts

To look up a word, say mollify:

$ sdcv mollify

Tried with: Console Version of StarDict 0.4.2 and Ubuntu 12.04 LTS