Professional Documents
Culture Documents
Archive PDF
Archive PDF
Lab1
Purpose: Use tar to create and compress archives, as well as for
listing contents and extracting files.
Procedure:
Create some files in /root/archive folder. Use dd and copy.
Purpose: Use gzip and gunzip to compress and extract files. Gzip is
usually used to compress a file in place. GRUB uses this format for
the splashscreen.
Procedure:
To compress one file:
[root@centos63 archive]# gzip bc
[root@centos63 archive]# ls
bc.gz zeroes
Lab 3
Procedure:
To add a file to archive (name of archive is the first argument):
[root@centos63 archive]# zip bc.zip bc
adding: bc (deflated 53%)
[root@centos63 archive]# ls
bc bc.zip zeroes