Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is supposed to be in Kali Linux, I don't know what I am doing Overview This is a group assignment, 3 people at most

This is supposed to be in Kali Linux, I don't know what I am doing

image text in transcribed

Overview This is a group assignment, 3 people at most in a group. Write a script ten_dirs.sh that does these tasks: - make a directory ten - make ten subdirectories ten/dir01, ten/dir02,.. through ten/dir10. Note the formatting dir01, dir02, etc., rather than dir1, dir2, etc. - in each subdirectory, make four files, file1.txt through file4.txt, such that file1.txt has one line consisting of the digit 1, file2.txt has two lines, each consisting of the digit 2, file3.txt has two lines, each containing the digit 3, and file4.txt has four lines, each containing the digit 4. Note that hard-coded solutions (e.g., writing mkdir dir01; mkdir dir02; ...), will not receive full credit. You should use a loop of some kind or another. Hint: A convenient way to remove the ten directory and all its files is rmr ten (search the rm manual page for r to see what it does), so a convenient way to rerun the scrip several times as you develop it is rm -r ten; ten_dirs.sh

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

Database Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

More Books

Students also viewed these Databases questions

Question

1. Explain the 2nd world war. 2. Who is the father of history?

Answered: 1 week ago