I have a binary file in linux. How can I check whether it has been compiled with \"-static\" or not?
ldd /path/to/binary should not list any shared libraries if the binary is statically compiled.
ldd /path/to/binary