Question: 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
Get step-by-step solutions from verified subject matter experts
