21. fork() and execl() combinationWrite a C program using `fork()` to create a child process that executes the `whoami` command using `execl()`. Print the output of the child process in the parent pr…
20. security implications of using `exec()` functionsDiscuss the security implications of using `exec()` functions and how to mitigate potential risks.
15. Replace the current process with the `cal`Write a C program to replace the current process with the `cal` command for the current year and month using `execl()`.
23. Execute a series of commandsImplement a program to execute a series of commands in a pipeline using `fork()` and `exec()` functions (e.g., `ls | grep "file"`).
22. Multiple child processesCreate a C program that uses `fork()` to create multiple child processes. Each child process should execute a different command (e.g., `date`, `ls -l`, `cal`) using `execl…
17. A shell-like program using exec()Implement a shell-like program that repeatedly takes user commands and executes them using appropriate `exec()` functions.