[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] tar



Jeff Lovell <jlovell@xxxxxxxxxx> writes:

> > tar cvfpz web/* web.tar
> tar -zcvpf web.tar web/*

> you must specify your tar file after -f

Actually Jeff, there is a subtlety here.

When using this argument as originally posted, it is not necessary to
have f as the last option specifier:

        tar cvfpz myfile.tar.gz somefiles

But your method _requires_ the f to be the last option specifier:

        tar -cvpzf myfile.tar.gz somefiles

The use of the "-" makes the difference.



-- 
Jens Kristian Søgaard, Mermaid Consulting I/S,
jens@xxxxxxxxxxxxxxxxxxxx,
http://www.mermaidconsulting.com/