Results 1 to 5 of 5
Hey, Guys!
Can anyone one help me with designing a command that will
find all executable files(executable via a limited user's account)
?
I think that must be something like ...
- 05-29-2006 #1Just Joined!
- Join Date
- Jan 2006
- Posts
- 2
How to find all executable files?
Hey, Guys!
Can anyone one help me with designing a command that will
find all executable files(executable via a limited user's account)
?
I think that must be something like "find -perm xxxxxxx"
Thank you.
- 05-29-2006 #2Just Joined!
- Join Date
- Mar 2006
- Posts
- 9
umm..mm I've never use find command . I suggest u to use grep instead..
orCode:grep -r xxxx *.x
orCode:grep -r xxxx *.*
xxxx is filename path. and it xxxx is also word in fileCode:grep -r xxxx *
- 05-29-2006 #3
Log in as root and type
orCode:which filename eg. which mplayer
. Usually, an executable program reside on /usr/bin directory.Code:echo $PATH
- 05-29-2006 #4
I think he's more looking for a way to identify random files that are executable. Something like this may work
etc as bits which contain exectuable instruction. You are supposed to be able to do this using 'mode' along with perm but it doesn't seem to work for me, or at least is a lot slower.Code:find -perm 111 -exec echo {} \; find -perm 333 -exec echo {} \; find -perm 777 -exec echo {} \;
- 11-09-2007 #5Just Joined!
- Join Date
- Nov 2007
- Posts
- 1
generic solution
In unix there is a command called 'file' which will determine the file type of any file.
$file gimptool-2.0
will for instance give you:
gimptool-2.0: Bourne shell script text executable
Andreas



