Explain the purpose of preparing the executable path in the process replacement using `execl()`. How do absolute and relative paths differ in this context?
The main purpose behind this is to determine the full path of the executable file that the user wants to run. The path can either be absolute or relative. Absolute path contains the complete path from the root directory, e.g.("/bin/ls") whereas relative path specifies the path relative to the current working directory , e.g. './myprogram'.