Write the command in fedora that can be used to perform the following: a. Compre
ID: 3881996 • Letter: W
Question
Write the command in fedora that can be used to perform the following:
a. Compress the symbolic link /root/sfile using the compress utility and display the compression ratio.
b. Compress the contents of the directory /root/dir1 using the gzip utility and display the compression ratio.
c. Decompress the file /root/letter.bz2.
d. Compress the file /root/letter using gzip fast compression.
e. Find the compression ratio of the file /root/letter.gz.
f. Perform a test compression of the file /root/sample using the bzip2 utility.
g. Compress the file /root/sample using the bzip2 utility while minimizing memory usage during the compression.
Explanation / Answer
a.
compress -v -f -r /root/sfile
-v is to display compression ratio
b.
gzip -r -v /root/dir1
-v is to display compression ratio
-r is used for directory
c.
uncompress -v /root/letter.bz2
d. gzip -1 /root/lettter
-1 is used for fast compression
e.
gzip -v /root/letter.gz
-v is used for compression ratio
f.
bzip2 -v /root/sample
-v is verbose
e.
bzip2 -s /root/sample
-s is used to reduce memory usage during compression
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.