How do I check the version of a program in Linux?

How do I check the version of a program in Linux? In command line interface.
DBDevOneAsked:
Who is Participating?
 
net_sec_guruCommented:
I usually use two different methods:

<command to execute command> -v
ie - # nmap -v

or else I will query the rpm database for version:
rpm -qa |grep <program> (qa will show all programs installed so you need to grep for the one you want)
ie # rpm -q libc

Hope this helps!

And you can always "man" the program and check out how to check version number in there.
0
 
SunjithCommented:
If -v does not work, try -V or --version
0
 
DBDevOneAuthor Commented:
Thank you!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.