- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Command to display executable version
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
- 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
- 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
- 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