You are on page 1of 2

Name: Yeshi Lhendup

Activity 1: Using Tar

Activity Question
1.Open a root shell on your system

2. Create archive file etc.tar from/etc directory

3. Create compress (bzip) file of tar archive file

4. Read the content of file before extracting using –t option

1
5. Creat gunzip file from etc.tar

6. Decompress the etc.tar.gz using gunzip (gunzip etc.tar.gz)

7.Type tar xvf etc.tar –C /tmp /var

8. Type tar cjvf homes.tar.bz2 /home

9. Type rm–f *gz *bz2 *tar to remove all files resulting from activity

You might also like