Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Login to your Ubuntu desktop. 2. Launch a terminal session and maximize to full-screen. 3. Adjust the colors as in previous assignments. 4. Run

 

Login to your Ubuntu desktop. 2. Launch a terminal session and maximize to full-screen. 3. Adjust the colors as in previous assignments. 4. Run tmux to split the terminal session into two vertical panes. 5. Run the following commands. Begin on the LHS and use both panes efficiently. 5.1. $ test -d work && rm -fr work; ls -1 work 6. Do the following tasks in one single line. Use command separator. For each command that is run on a separate line, 2pts will be deducted! 6.1. Create ica5.d/work/temp using one command. Store listing of the directory /etc in long format in ica5.d/dirlist.etc 6.2. 6.3. Store listing of the directory /bin in long format in ica5.d/work/dirlist.bin 6.4. Store listing of the directory /usr recursively (including all of its subdirectories) in long format in icas.d/work/temp/dirlist.usr. Hint : use -R option in addition to long format. 7. zip (compress and archive): 7.1. $ zip ica5 r./ica5.d # Note that compression ratios are printed. 7.2. $ du -h ica5.d # The total size should be about 12M. 7.3. $ ls -lh # Note that .zip is added to the name of the compressed file. Compare the size of the zip file with the total size of uncompressed ica5.d directory in du output. $ mkdir ica5. unzip; mv ica5.zip ica5. unzip; cd ica5.unzip $ unzip ica5.zip $ cd 7.4. 7.5. 7.6. 8. gzip (compress only): 8.1. $ gzip ica5.d. 8.2. 8.3. 8.4. 8.5. 8.6. 8.7. 8.8. 9.2. 9.3. 9.4. 9.5. 9.6. 9.7. 9.8. # get back home. $ gziprica5.d $ du h ica5.d $ ls -1R ica5.d szcat -r ica5.d | less #Descend into each subdirectory and display compressed files in it. You may limit the output to top 15 lines for your screenshot. $ gunzip ica5.d $ gunzip rica5.d $ du -h ica5.d 9. tar (archive only) 9.1. # gzip works with regular files only. # Unlike zip, gzip does not create an archive. # gzip visits each directory and compresses the files in it. # Original files are replaced with compressed ones. $ tar cv -f ica5.tar archive to be created. #gunzip works like gzip. # files in individual subdirectories are uncompressed. ./ica5.d #-c: create an archive, -v : verbose, -f : name of $ tar -czv -f ica5.tar.gz ./ica5.d #-z : compress using gzip s ls -lh #Note the difference in sizes of ica5. tar and ica5.tar.gz $ tar -cjv -f ica5.tar.bz2 ./ica5.d #Compress using bzip2 instead of gzip $ ls -lh icas* #bzip2 compresses most efficiently. $ mkdir ica5.untar: mv ica5.tar.bz2 ica5.untar; cd ica5.untar; ls -1 $ tar -t -f ica5.tar.bz2 #list filenames included in the archive. $ tar -xv f ica5.tar.bz2 # tar detects whether it's compressed using gzip or bzip2.

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_2

Step: 3

blur-text-image_3

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

Statistics Unlocking The Power Of Data

Authors: Robin H. Lock, Patti Frazer Lock, Kari Lock Morgan, Eric F. Lock, Dennis F. Lock

1st Edition

0470601876, 978-0470601877

More Books

Students also viewed these Computer Network questions