Thursday, February 16, 2017

Archiving and Compressing Files

My Linux Learning Path

Most persons have difficulties with tar because ignores options order. File option f must be the last. Do Linux to learn Linux. Remember that if you don´t remember an option, use man tar in terminal.
Set ~/Desktop/ the current directory. Next, create two folders: Part1 (files: File1, File2, File3) and Part2 (files: File4, File5, File6), considering arbitrary content in each file.

  1. Create a tar file Program.tar with no content. Any Error?
  2. Create a tar file Program1.tar with folder Part1 only.
  3. Create a tar file Program2.tar with folders Part1 and Part2.
  4. Append folder Part2 to Program1.tar.
  5. Modify File1 and identify how to update Program1.tar file.
  6. Identify the content of Program2.tar on the screen.
  7. Untar Program1.tar to folder ~/Desktop/MyPrograms/
  8. Compress Program1.tar. using gzip.
  9. Create a compress tar file Program3.tar.gz that contains folders Part1 and Part2.
  10. Repeat previous exercise but this time use bzip2.
  11. Compress Program2.tar using gzip.
  12. Compress Program2.tar using bzip2.
  13. Decompress previous two files to different folders.

No comments:

Post a Comment