tar a file

Hi Expert,

Can help me on how to tar a file to become tar file and make it locate inside the same directory?

Please Help.

Thanks.

as a starter learn how to read the "man" pages. for you this will be "man tar".

good luck,
DN2

Hi DN2,

I go through the man tar already but no really understand on it.

I have 1 core file vmcore.0 and too large to upload so wish to make to to tar file and after that want to gunzip it into vmcore.0.tar.gz.

But just cannot.

just do a zip (gzip, bzip or whatever) on the file. there is no need to tar it first because it's just ONE file. tar is used to make a "tape archive" out of a directory structure...

if i use gzip, possible that the file will compress from 4gb to 1.3gb?

tar doesn't compress the file..It just create a tape archive from it..So u compress the file using gzip/bzip..

there is a clear answer: "maybe!"