Running 64bit OS , Find all 32bit programs on a system

How should I situate all 32bit programs on my system? I'm running a 64bit OS.

(There could be some, yet I neglect)

1
2022-06-07 14:41:06
Source Share
Answers: 2

This will certainly take for life:

find /|parallel -n100 file {}|grep "ELF 32.*executable"

It needs to function however. You'll require to see to it you have actually GNU parallel mounted

1
2022-06-07 15:11:06
Source

This is kinda crude, yet need to suffice

find / -mount -type f -perm /111 -exec sh -c 'objdump -f {} | grep -q elf32 && echo {}' \;
  • -mount maintains us on the / filesystem
  • -type f limits it to documents just
  • -perm /111 limits it to documents with the executable little bit
  • after that we run objdump -f on the documents and also echo the documents name if objdump has elf32

The first 3 filters are so we tighten the outcomes a little bit and also aren't running objdump on each and every single point.

1
2022-06-07 15:10:44
Source