Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Purpose: The purpose of this assignment is to use various Unix commands A - Z . Steps 1 - 1 0 need to be part

Purpose: The purpose of this assignment is to use various
Unix commands A-Z. Steps 1-10 need to be part of the
lab6.scr script.
Create the directory lab6 in your home directory.
Create the directory lab6_all in your lab6 directory.
Create the directory lab6_extra in your lab6 directory.
Create the script lab6.scr in your home directory that will
use Unix commands to produce the following desired output.
1. Use the tar command to create the archive file lab6.tar in your
lab6 directory that contains all of the files in the directory
/home/david/lab6.
2. Perform a table of contents on the archive file lab6.tar located
in your lab6 directory to verify what files are part of the archive.
3. Use the tar command to extract ALL of the files from the
archive file lab6.tar. Extract the files into your
lab6/lab6_all directory.
Extra Credit: 10 Points
Use the tar command to extract ONLY the file lab1.readme from the
archive file lab6.tar. Extract the file into your
lab6/lab6_extra directory.
4. Split the file lab6.split located in your lab6_all directory into 2 files
21 lines each.
5. Compress / zip the file lab6.log located in your lab6_all directory.
6. Uncompress / unzip the file lab6.log1.gz located in your lab6_all
directory.
7. Display the number of lines, words and bytes in the file
lab6.log1 that you unzipped in step 6.
8. Execute the command that will display the file classification
for the file /home/david/lab6.readme and the cp command.
9. Display the difference between the two files lab6file1 and lab6file2
located in the directory /home/david/lab6.
10. Display a recursive list of all files in your lab6 directory.
Run your script using the tee command to redirect output
to the file lab6.out located in your lab6 directory.
Leave all files in your lab6 directory for grading.
include screenshot and detailed explanation

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

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

What is the purpose of preparing consolidated financial statements?

Answered: 1 week ago