3. Once your program has been tested, you are ready to create an archive of your
ID: 3880757 • Letter: 3
Question
3. Once your program has been tested, you are ready to create an archive of your lab deliv- erables so that they can be submitted to your lab instructor. Go into your HOME direc- tory (not your Lab 2 directory), and type the command "tar -cf Lab_2.tar Lab_2" without the quotes). This command will make an archive of all the files in your Lab 2 directory and place the archive into a file named Lab.2.tar 4. Once you have successfully created the archive named Lab.2.tar, use the cscheckin pro gram to turn in the file Lab 2.tar. bash-4.1 cd bash-4.1s tar -cf Lab 2.tar Lab 2 tar: Lab_2: Cannot stat: No such file or directory tar: Exiting with failure status due to previous errorsExplanation / Answer
tar command in linux helps us in archiving the files.
we can give the following options while executing the command
-c : Create archive file
-z : Compress the file with gzip.
-v : Verbose mode ( allows us to know the progress)
-f : Allows us specify the name of the archive.
In the above scenario we are archiving the Lab_2 directory using c and f options. In order to do that Lab_2 directory must be within the set of files/ directories. In other words, we need to be in the parent directory of Lab_2 directory but not in the ancestor directory. So Here, HOME directory is the ancestor one and hence the command tells us that "No such file or directory"
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.