Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need captures of this lab with user name Ahed: using virtual machine Step 1: Install gedit in your MINT linux using the following command

i need captures of this lab with user name "Ahed":

using virtual machine

image text in transcribed

Step 1: Install gedit in your MINT linux using the following command ango abf-act quafoss dcqit Step 2: Install the following program library in your Linux using the following command: sudo apt-get install libc6-dev Step 3: Open the terminal Find your current working directory using the command: pwd /home/user Step 4:Create a folder cprog in the home/user folder as given below: mkdir cprog Navigate to the cprog folder using the following command : cd cprog Step 5: Create a demo. program using the gedit gedit demo.c Open demo.c - prog 1 #include 2 #include 3 void main() 4 int p: 5 pefork(); 6 if(p==') { 7 puts("I an child Process"); 8 execipl/bin/date","cal", NULL); 9 exit(); 10 ) 11 else { 12 wait (NULL); 13 puts("waiting for child to Complete"); 14) 15 16 ) 17 Save the program (Note: If any warning message comes just do Control -C and continue] Command to compile the program in the terminal goc demo.c-op] Command to execute the program Output I am child Process Mon 21 Sep 2020 02:11:29 PM +04 Waiting for Child to Complete

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions