Difference between system() and execl() functions
execl() or execlp() functions are used to replace the image of the current process with a new process image. In other words the current process code gets replaced by the new process code.
execl() or execlp() functions are used to replace the image of the current process with a new process image. In other words the current process code gets replaced by the new process code.
fork() is a system call used to create a new process. The new process is called a child process and the original process is called the parent process. The child process by default is a duplicate of the parent process.