1
./something

How does Linux know how to execute this if it's a shell script, or compiled machine code? I understand how the shebang works, but there doesn't seem to be anything like that here.

1 Answer 1

2

The binfmt subsystem of the Linux kernel recognizes various magic numbers at the start of the file and invokes the appropriate loader for it.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .