In C language,
Write a program called minishell that creates two childprocesses:
one to execute 'ls -al' and the other to execute‘grep minishell.c’.
After the forks, the original parent process waits for bothchild processes to finish before it terminates. The parent shouldprint out the pid of each child after it finishes. The standardoutput of 'ls -al' process should be piped to the input to the'grep minishell.c' process. Make sure you close the unnecessaryopen files for the three processes. The output should be the oneline that includes the directory entry for minishell.c. You willneed to call the source file minishell.c for this to workproperly.
Please comment thoroughly so i can follow the logic.