Write a C program which can determine whether or not it is a process group leader and print a suitable message.
Write a C program which can determine whether or not it is running set UID and print a suitable message.
Write a simple test program with forkO that prints messages from the parent and child processes. The messages should include the words parent and child as appropriate and should also include the PID of the process doing the printing. Execute the program several times. Are the two messages always printed in the same order.
Add wait() and exit() system calls to the program you wrote for the previous exercise, so that an exit status is returned by the child to the parent, and included in the message the parent prints. Execute this program several times. Is the message order different from the previous exercise? Are the messages always printed in the same order?
Write a C program which will execute the following series of Linux commands: