Compression
I need some help figuring out my mistakes. I know I am close, but I am getting confused. Any help is much appreciated :)
Compress the symbolic link /root/sfile using the compress utility and display the compression ratio4 # bzip2 –v /root/sfile unsure because it is a symbolic link Compress the contents of the directory /root/dir1 using the gzip utility and display the compression ratio # gzip –v /root/dir1 unsure because it is a directory (-r for directory, but -v to show compression ratios) Decompress the file /root/letter.bz2 # uncompress –v /root/letter.bz2 |
You get an error if you try to compress a symlink, so you need to get to the real file:
Code:
REALFILE=$(readlink /root/sfile) Code:
gzip -r -v /root/dir1 |
Thank you! :)
|
All times are GMT -5. The time now is 10:35 AM. |