The command to tar & gzip is:

tar -zcf /tmp/michael.tgz /home/michael
(then burn the file /tmp/michael.tgz to CD)

without compression, remove the z option:

tar -cf /tmp/michael.tar /home/michael

add the v option to either command for verbose output, but note the f option 
must come LAST:

tar -zvcf /tmp/michael.tgz /home/michael

to scroll help:

tar --help | less

or 

man tar

to decompress later:

tar -zxvf michael.tgz /wherever/you/want

or if you didn't use compression above:

tar -xvf michael.tar /wherever/you/want

Happy tar-ing :)


On Monday 14 November 2005 11:43 pm, Michael Walters wrote:
> Michael Walters wrote:
> >Thanks Nick and everyone else,
> >
> >I did a du -h /home/michael and found I am using 181M in /home/michael
> >
> >I did a du -h /tmp and got 17K used in /tmp.
> >
> >Since my usage in /home/michael was only 181M I should be able to put
> >all of my home directory on a 700M CD as 181M is far less than 700M.
> >
> >I was told that I could tar the current directory by doing tar . by a
> >fellow I met at the Calgary Community Network Association. I am going to
> >try that out now and will tell you how it goes.
>
> I tried tar . and got an error message of tar . invalid operation try
> tar --help. I tried tar --help and a number of lines went by, only the
> last of which I could read. I have forgotten how to scroll through a
> help file.
>
> Regards,
>
> Michael again
>
> >Regards,
> >
> >Michael Walters
> >
> >_______________________________________________
>
> _______________________________________________
> clug-talk mailing list
> [email protected]
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying

_______________________________________________
clug-talk mailing list
[email protected]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying

Reply via email to