Question: I'm needing help coding this in the programming language C Implement a c program that prints a welcome message (Welcome to my awesome program, Hello
I'm needing help coding this in the programming language C

Implement a c program that prints a welcome message ("Welcome to my awesome program", "Hello from Linux Land", etc) in the main method. Part 2: From the same program, print the program's PID (Process IDentification Number) with an identifying message ("PID:", "Process ID:", etc). This should be on a separate line from the welcome message. You should use the getpid function found in the unistd.h header file to get this information. Part 3: From the same program, print the PID and the cmdline value of each process that you have access to in "/proc". In Linux, process information is stored in the "/proc" directory. This directory contains a subdirectory for each active process. The name of the subdirectories match the PIDs of the corresponding process. Each process subdirectory contains a file called cmdline which contains the command that was used to launch the process. You should use the opendir and readdir from the dirent.h file to read the contents of the "/proc" directory. For each entry in the "/proc" directory you should then attempt to read the /proc/ PID>/cmdline file. Finally you should print the PID and the contents of the cmdline file in a nicely formatted way (ex. ). Part 4: For full credit, you should not print any entries that are not a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
