Creating Practical Scripts
Part IV
**************************************
The tar command is used to archive entire directories into a single file.
$ tar -cf archive.tar /home/Christine/Project/*.*
$ tar -cf archive.tar /home/Christine/Project/*.* 2>/dev/null
compress the file. by simply adding the -z option.
$ tar -zcf archive.tar.gz /home/Christine/Project/*.* 2>/dev/null
**************************************
**************************************
Chapter 24 Writing Simple Script Utilities
**************************************Section : Performing Archives
===================================The tar command is used to archive entire directories into a single file.
$ tar -cf archive.tar /home/Christine/Project/*.*
$ tar -cf archive.tar /home/Christine/Project/*.* 2>/dev/null
compress the file. by simply adding the -z option.
$ tar -zcf archive.tar.gz /home/Christine/Project/*.* 2>/dev/null
Section : Managing User Accounts
===================================Section : Monitoring Disk Space
==================================**************************************