When a shell creates a new process to execute a command, how does it know that file is executable? If it is executable, how does it distinguish between a shell script and a file produced by a compilation? What is correct sequence for checking the above cases?
Answers
Answered by
1
Answer:
The access permission of a file helps to distinguish that file is executable or not. There are three types of permissions are available - read(r),write(w) and execute(x). If the file has "x" access then it is executable
Similar questions