Answered step by step
Verified Expert Solution
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 AZ Steps need to be part of the
labscr script.
Create the directory lab in your home directory.
Create the directory laball in your lab directory.
Create the directory labextra in your lab directory.
Create the script labscr in your home directory that will
use Unix commands to produce the following desired output.
Use the tar command to create the archive file labtar in your
lab directory that contains all of the files in the directory
homedavidlab
Perform a table of contents on the archive file labtar located
in your lab directory to verify what files are part of the archive.
Use the tar command to extract ALL of the files from the
archive file labtar. Extract the files into your
lablaball directory.
Extra Credit: Points
Use the tar command to extract ONLY the file labreadme from the
archive file labtar. Extract the file into your
lablabextra directory.
Split the file labsplit located in your laball directory into files
lines each.
Compress zip the file lablog located in your laball directory.
Uncompress unzip the file labloggz located in your laball
directory.
Display the number of lines, words and bytes in the file
lablog that you unzipped in step
Execute the command that will display the file classification
for the file homedavidlabreadme and the cp command.
Display the difference between the two files labfile and labfile
located in the directory homedavidlab
Display a recursive list of all files in your lab directory.
Run your script using the tee command to redirect output
to the file labout located in your lab directory.
Leave all files in your lab directory for grading.
include screenshot and detailed explanation
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started