Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Unix
Expertise: Advanced
Oct 13, 2004



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Find Programs or Libraries Related to a Particular Keyword on a UNIX Platform

Note: This tip applies primarily to UNIX platforms (fortunately or unfortunately). The code was run on a Sun Solaris server (SunOS 5.8).

How many times have you wondered what programs installed on your machine will handle content of a given type? There's an easy utility that does this called apropos.

Suppose you want to find the programs/libraries related to .jpeg. Give the following command:

apache 21> apropos jpeg
cjpeg           cjpeg (1)       - compress an image file to a JPEG file
djpeg           djpeg (1)       - decompress a JPEG file to an image file
jpegtran        jpegtran (1)    - lossless transcoding of JPEG files
rdjpgcom        rdjpgcom (1)    - display text comments from a JPEG file
wrjpgcom        wrjpgcom (1)    - insert text comments into a JPEG file
As you can see, this returned five programs related to .jpeg. Of course, the output will differ depending on your system.

Karthik Kumar Arun Kumar
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date