TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:18702] SQOTD (simple Q. of the day)



Timothy Wilson wrote:
> 
> Hey everyone,
> 
> I've got a couple kids would did some C++ programming on my Linux server
> this spring. Now they'd like to take all of their files home with them. I
> want to tar and gzip them, but I can't get the tar command options right.
> ('man tar' didn't help any) My last effort resulting in many pages of
> garbage popping out of laser
> printer.
> 
> So, what would I type to archive a users's entire home directory into a
> tar.gz?

On Linux, tar is smart enough to invoke gzip or bzip2 internally without
needing a pipe or anything.

I usually just do something like

	tar zcf user.tar.gz /home/user

or

	tar Icf user.tar.bz2 /home/user

-- 
 _  _  _  _ _  ___    _ _  _  ___ _ _  __   Make Headlines -- Use a 
/ \/ \(_)| ' // ._\  / - \(_)/ ./| ' /(__   corduroy pillow. 
\_||_/|_||_|_\\___/  \_-_/|_|\__\|_|_\ __)                             
[ Mike Hicks | http://umn.edu/~hick0088/ | mailto:hick0088@tc.umn.edu ]