Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Part 2 ( Sobell Shell Seript ) using command ( s ) to create directory and file Task # 1 . Write a shell script

Part 2(Sobell Shell Seript) using command(s) to create directory and file
Task #1. Write a shell script (
script1.sh) to create a few directories as shown below in your current directory (dirl, dir2), a few files (filel in current directory, file10 in dir1, 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 link1(a softlink to file20) after file20 is created.
Copy and paste the run-output of your shell script (
scriptl.sh) here Task #2. Write a shell script (
script2.sh), listing all the files and directories created in Task#1(you may use Is or find
command here),(1) to output a shell fille (
script3.sh) which will delete all the files and directories when it is run, (2) to
run this output script (
script3.sh) 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).
Conv and paste vour shell scrint (
scrint2.sh) here
cs3377 Section
Name:
netID:
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).
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions