When the shell creates a new process to perform a command, how does it determine whether a file is executable? If a file is executable, how does it know the difference between a shell script and a file formed by a compilation? What's the best way to go about verifying the scenarios mentioned above?

LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
5th Edition
ISBN:9781337569798
Author:ECKERT
Publisher:ECKERT
Chapter7: Working With The Bash Shell
Section: Chapter Questions
Problem 15RQ
icon
Related questions
Question
When the shell creates a new process to perform a command, how does it determine whether a
file is executable? If a file is executable, how does it know the difference between a shell script
and a file formed by a compilation? What's the best way to go about verifying the scenarios
mentioned above?
Transcribed Image Text:When the shell creates a new process to perform a command, how does it determine whether a file is executable? If a file is executable, how does it know the difference between a shell script and a file formed by a compilation? What's the best way to go about verifying the scenarios mentioned above?
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L