LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
From: Mark Smith <marks@senet.com.au>
To : Darryl Ross <darryl@bachblue.com.au>
Date: Sat, 03 Apr 1999 12:29:51 +0930
Re: Executable files
Using the file permissions is a good indication, but if you want to be
absolutely sure, use the file(1)
eg :
[mark@portia]$ file zip
zip: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically
linked, stripped
[mark@portia]$
file(1) is also really useful to identify of files of various different
types. It is interesting to run it against other types of files. Eg. I
sometimes run it against Cisco IOS files, and it tells me the router has
for example a Motorola 68K CPU in it, as the IOS image is a M68K
executable.
HTH,
mark.
Darryl Ross wrote:
>
> Have a look at the file permissions. If there is an X in the third column of
> each of the permissions it means its executable. eg:
>
> -rwxr-xr-x
>
> means it is readable, writable, and executable for the owner of the file,
> and readable and executable by everyone else.
>
> Also, if you do an "ls --color" then if the file is green (assuming you
> haven't changed the colour settings) then it is executable by the current
> user.
>
> Hope that makes sense
> Cheers
> Dazz
>
> --
>
> Yesterday's the past, tomorrow's the future, but today's a gift, that's why
> its called the present.
>
> ----- Original Message -----
> From: Robyn Manning <robynman@dove.net.au>
> To: <linuxsa@linuxsa.org.au>
> Sent: Saturday, 3 April 1999 3:18
> Subject: Executable files
>
> >How do you know if a file is an executable or not? In Dos you have an
> >ending of exe or com or bat. Does Linux have anything like this?
> >
> >What are the steps involved to set up a pnp sound card in Linux.
> >
> >Thanks
> >
> >Robyn
> >
> >
> >--
> >Check out the LinuxSA web pages at http://www.linuxsa.org.au/
> >To unsubscribe from the LinuxSA list:
> > mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
>
> --
> Check out the LinuxSA web pages at http://www.linuxsa.org.au/
> To unsubscribe from the LinuxSA list:
> mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
--
| Mark Smith | email: mailto:marks@senet.com.au
| "IP Over Everything" - Vint Cerf.
--
Check out the LinuxSA web pages at http://www.linuxsa.org.au/
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
Return to the LinuxSA Mailing List Information Page