Results 1 to 4 of 4
Is there a command in Unix which can distinguish between an executable on solaris, on windows, on Linux, on HP unix etc?...
- 07-09-2007 #1Just Joined!
- Join Date
- Jul 2007
- Posts
- 1
unix cmd for distinguishing exe on Solaris/Windows/Linux
Is there a command in Unix which can distinguish between an executable on solaris, on windows, on Linux, on HP unix etc?
- 07-10-2007 #2Linux User
- Join Date
- Aug 2006
- Posts
- 458
you can use the file command
- 07-10-2007 #3
I'm not sure what you mean. The 'file' command will tell you what sort of file you have (Bash script, ELF binary, etc.), but a program compiled to ELF, be it Linux or Solaris, should appear the same.
Can you explain what exactly you want?DISTRO=Arch
Registered Linux User #388732
- 07-11-2007 #4
file usually includes other information, like what processor it's compiled for:
Code:/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.6, dynamically linked (uses shared libs), stripped
Flies of a particular kind, i.e. time-flies, are fond of an arrow.
Registered Linux User #408794


Reply With Quote