- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- General
- >
- Re: Command to display executable version
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-09-2013 08:14 AM
09-09-2013 08:14 AM
Command to display executable version
I'm sure I came across a shell (ksh) command that displayed the version of an executable, something along the lines of...
$ <show_version> /usr/bin/diff
But I can't for the life of me remember what it was.
I'm not looking for the regular 'swlist', but something that looks inside the file (which is supplied as a parameter).
Many thanks,
Gary
- Tags:
- what
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-09-2013 08:39 AM
09-09-2013 08:39 AM
Re: Command to display executable version
The command you're looking for is 'what'.
# what /usr/bin/diff
/usr/bin/diff:
diff.c $Date: 2002/06/03 03:20:39 $Revision: r11.11/2 PATCH_11.11 (PHCO_26907)
diffdir.c $Date: 2002/06/03 03:20:03 $Revision: r11.11/3 PATCH_11.11 (PHCO_26907)
diffreg.c $Date: 2002/06/03 03:18:35 $Revision: r11.11/3 PATCH_11.11 (PHCO_26907)
$Revision: @(#) diff CUP11.11_BL2002_0617_2 PATCH_11.11 PHCO_26907
Mon Jun 17 05:04:06 PDT 2002 $
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-09-2013 10:15 PM
09-09-2013 10:15 PM
Re: Command to display executable version
In addition to 'what', the program 'ident' can be useful in certain scenarios, e.g. when the binary is built using sources controlled under RCS.
HP-UX Compilers
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP