SBlackLinux
New Member
Hi all. New to the forum and a bit of a newbie, but trying to learn. I have searched for an answer but haven't found one, so hoping someone can assist.
The Dynamic Libraries chapter in Tuxcademy's LPIC-1 manual has the following exercise:
"Find a statically-linked executable on your system."
So I believe I can use the file command to get something like this (example from the manual):
$ file sqrttest-static
sqrttest-static: ELF 32-bit LSB executable, Intel 80386,
version 1 (SYSV), statically linked, for GNU/Linux 2.6.8,
not stripped
So I thought about using:
ls -R / | xargs file | grep "statically"
This seems ludicrously inefficient and returns no results anyway. How would be best to do this please? Can a command return a list of executables that have statically linked libraries?
Thank you,
Stu
The Dynamic Libraries chapter in Tuxcademy's LPIC-1 manual has the following exercise:
"Find a statically-linked executable on your system."
So I believe I can use the file command to get something like this (example from the manual):
$ file sqrttest-static
sqrttest-static: ELF 32-bit LSB executable, Intel 80386,
version 1 (SYSV), statically linked, for GNU/Linux 2.6.8,
not stripped
So I thought about using:
ls -R / | xargs file | grep "statically"
This seems ludicrously inefficient and returns no results anyway. How would be best to do this please? Can a command return a list of executables that have statically linked libraries?
Thank you,
Stu