Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1089
  • Last Modified:

Command in aix to find executable*.a

Hello ,

Please let me know the command to find

executable*.a , and

all other exeutable file

in AIX

0
prashantchauhan
Asked:
prashantchauhan
  • 4
  • 4
1 Solution
 
omarfaridCommented:
can you elaborate more?

to find a file you can always use

find / -name "filename*"

For particular file perm you may use

find / -name "filename*" -perm +x
0
 
prashantchauhanAuthor Commented:
executable *.a         
executable *.o      
executable *.so
executable *.cf
executable *.conf
executable *.cfg      
Any other files which are executable.      

I have to find all the files like above
example.xls
0
 
omarfaridCommented:
try

find / -name ("*.a" -o name "*.o" -o -name "*.so" -o name "*.cf" -o -name "*.conf" -o -name "*.cfg") -perm +x

if the above does show an error, remove brackets
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
prashantchauhanAuthor Commented:
root@cbktkpdb01:/root # find / -name ("*.a" -o name "*.o" -o -name "*.so" -o name "*.cf" -o -name "*.conf" -o -name "*.cfg") -perm +x
ksh: 0403-057 Syntax error: `(' is not expected.
1:root@cbktkpdb01:/root # find / -name "*.a" -o name "*.o" -o -name "*.so" -o name "*.cf" -o -name "*.conf" -o -name "*.cfg" -perm +x
find: 0652-017 name is not a valid option.
0
 
omarfaridCommented:
can you try simple one first:

find /  -name "*.a" -perm +x
0
 
prashantchauhanAuthor Commented:
/root # find /  -name "*.a" -perm +x
find: 0652-019 The status on /nim/tools/helpers/get_disks is not valid.
find: 0652-019 The status on /nim/tools/helpers/ls_mapping is not valid.
find: 0652-019 The status on /nim/tools/SetRecomm is not valid.
0
 
omarfaridCommented:
here these are messages to some files find could not access, and result shows that you don't have *.a files that have x perm
0
 
prashantchauhanAuthor Commented:
many thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now