Login to your Ubuntu desktop. 2. Launch a terminal session and maximize to full-screen. 3. Adjust...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Related Book For
Statistics Unlocking The Power Of Data
ISBN: 9780470601877
1st Edition
Authors: Robin H. Lock, Patti Frazer Lock, Kari Lock Morgan, Eric F. Lock, Dennis F. Lock
Posted Date:
Students also viewed these computer network questions
-
Carol Harris, Ph.D, CPA, is a single taxpayer and she lives at 674 Yankee Street, Durham, NC 27409. Her Social Security number is 793-52-4335. Carol is an Associate Professor of Accounting at a local...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-6. On December 12, Irene purchased the building where her store is located. She paid...
-
Please answer the following e-commerce problem in at least 350 words (I encourage you to write more to fully respond to the prompt). This assignment will be graded. Electronic Commerce Problem: Erin...
-
Consolidated Oilfields plc is interested in exploring for oil near the west coast of Australia. The Australian government is prepared to grant an exploration licence to the company for a five-year...
-
How would you suggest that a dry cleaner build greater loyalty and retention with its best customers?
-
An investment bank has written 10,000 call options (strike 40, maturing in three months), and 5000 put options (strike 33, maturing in seven months), written on a stock share whose current price is...
-
Use Worksheet 8.1. Adam Modine, 43, is a recently divorced father of two children, ages 9 and 7. He currently earns $95,000 a year as an operations manager for a utility company. The divorce...
-
How do you plan to finance a short-term and a long-term project? Explain what success looks like in both situations.
-
The following cross tabulation shows the average speed of the 25 winners by year of the Daytona 500 automobile race (The 2013 World Almanac). a. Calculate the row percentages. b. W hat is the...
-
2. Consider 4 bags of candy where the 1st bag has two Snickers, the 2nd bag has three Reese's peanut butter cups, the 3rd bag has two Snickers and three Reese's cups, the 4th bag has one Snickers and...
-
A small northern company in Greenland (not an EU Member State) has signed a sales contract to export valuable products made of muskox wool to a high-end European retailer. The company is considering...
-
Select three accounts that you feel are important when analyzing and making decisions for a business. (At least one must have an unfavorable variance.) Look for trends and use your imagination to...
-
The ESG Strategic Goal of the organization and the supporting corporate initiatives that the organization has undertaken. 6. A direct quote from your sources that summarizes the organization's...
-
What are the implications of globalization and interconnectedness for the developmental pathways of advanced economies, particularly concerning issues of inequality, labor markets, and innovation...
-
A lack of access to preventative care affects an entire community and costs healthcare systems an exorbitant amount of money. thoroughly examine this problem, its past and present impact, and its...
-
Miss Moneypenny is an administrative assistant at Universal Exports Corporation. In recognition of her 30 years of service, Universal Exports gives Moneypenny a gold clock worth $2,600. Universal...
-
Do animals have rights? If so, what are they? What duties do human beings have toward animals? Does KFC protect animal welfare at an acceptable level?
-
It is estimated that in the general population about 9 out of every 1000, or 0.009, children are diagnosed with autism. A recent study included 92 six-month-old babies who had a sibling with autism....
-
Find endpoints of a t-distribution with 1% beyond them in each tail if the sample has size n = 12. Assume the sample is a random sample from a distribution that is reasonably normally distributed and...
-
Data 3.4 on page 209 describes a sample of n = 25 Mustang cars being offered for sale on the Internet. Use the data in Mustang Price to construct a 95% confidence interval to estimate the mean Price...
-
The plaintiff [Christine Parent] leased an automobile from Amity Autoworld, Ltd. (hereafter Amity) [in Amityville, New York] in January 2002. Amity sold all its Toyota automobile franchise assets * *...
-
In 1994, [Alvin Gebhart] began working at Mutual of New York (MONY) in San Diego, where he sold annuities and mutual funds. While at MONY, Gebhart met Jack Archer, a fellow MONY salesperson. In 1995,...
-
Iberia Surgical [LLC] was formed, in August 1998, by a group of physicians practicing in Iberia Parish [Louisiana] for the purpose of establishing an ambulatory, outpatient surgery center. * * * Dr....
Study smarter with the SolutionInn App