Date: Sun, 8 Feb 2015 13:23:12 +0530 From: Manish Jain <bourne.identity@hotmail.com> To: "freeb >> User Questions" <freebsd-questions@freebsd.org> Subject: why does tar archive directory differently based on command line? Message-ID: <BLU436-SMTP2585638FB0568F935D69E10F6260@phx.gbl>
next in thread | raw e-mail | index | archive | help
Hi, I am having problems trying to understand why does tar archive differently with the following 2 commands, presuming xyz is a sub-directory : tar -c -f - ./xyz | gzip > xyz.tar.gz//xyz nested one level under . and .. tar -c -f - xyz | gzip > xyz.tar.gz//no . or .. With the first invocation, I get a top-level nesting that just has . and .. With the second, I get a top-level nesting that has xyz, which is much preferable The first invocation leads to an absurdity that you have to cd into . (sounds recursively impossible) to actually get to xyz Thanks for any help. -- Regards, Manish Jain +91-98995-82709 --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BLU436-SMTP2585638FB0568F935D69E10F6260>