Tuesday, January 30, 2007

linux tip on tar

If you untar a package, and it makes a mess of your directory because the packager didn't include the files in his tarball in a directory, you can use

% rm `tar ftz package.tar.gz`

to quickly get rid of those cluttering files.

% rm `tar ft package.tar`

does the same thing.

1 comment:

shino said...

that's good advice. thanks! I'm sure I'll use it, because i made a miss already number of times with darn tar files...