Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Linux shell script that will accomplish the following: compress all files in a directory supplied as the first argument into a single compressed

Write a Linux shell script that will accomplish the following:

compress all files in a directory supplied as the first argument into a single compressed file called All.Z. Check that the supplied argument is a directory before proceeding.

view all the files (including the hidden files) in the directory supplied as the second argument. Again, you need to check that the supplied argument is a directory before proceeding.

move to the home directory.

Determine the file types of all the files in the home directory.

rename a file supplied as the third argument into thirdName.txt. Make sure that the filename that was supplied exists before renaming it

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

More Books

Students also viewed these Databases questions