Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Part 3 . Task # 1 . Write a C / C + + program ( myprog l . c or myprog l . cpp

Part3.
Task #1. Write a C/C++ program (myprog l.c or myprog l.cpp, and its executable named myprog l) to create a few
directories as shown below in your current directory (dirl, dir2), a few files (filel in current directory, file 10 in dirl,
file20 in dir2, and a symbolic-link link 1(to link to file20).
You are going to create the files and directories in depth-first order (and left to right). That is, dirl will be created first,
then file10, and so on. You should create linkl (a softlink to file20) after file20 is created.
Copy and paste your program listing (myprog l.c or myprog l.cpp) here Task #2. Write c/c++ program (myprog2.c or myprog2.cpp, and its executable named myprog2), listing all the files and
directories created in Task#1(you may use 1s or find command here),(1) to output a C/C++ program (myprog3.c or
myprog3.cpp, and its executable named myprog3) which will delete all the files and directories when it is run, (2) to
compile and run this program (myprog3.c or myprog3.cpp) to delete all the files and directories, and (3) to show all the
deletion done (by listing all the files and directories after the deletion - by showing that there is no files and directories).
All of these will be done by running myprog2 program (via system call).
Copy and paste your program listing (myprog2.c or myprog2.cpp) here
cs3377 Section
Name:
netID:
Conv and naste the recultino nrooram (munroo 3cor munroo 3cmn) here
[
Copy and paste the output of the program (myprog2.c or myprog2.cpp) run.
Submit two files (to be attached for your upload): (1) this word document with your answer and (2) a zip file (including
each shell script and its log of the run).
help me please.
image text in transcribed

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_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

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

Get Started

Students explore these related Databases questions