Purpose: zip a folder in window and extract it in linux.
I prefer to https://superuser.com/a/898508/1451256 and I realize there is no description for -a option in tar.exe --help: https://ss64.com/nt/tar.html , so I just follow as the tar official: "tar -cvzf xxx" but when I've tried to extract that zip file in linux by "unzip xxx", it throws error " End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. "
So I suspect the zip file is not zipped properly, then I try to add -a option, it works perfectly. As comment from https://superuser.com/a/1473257/1451256 : it says without the -a option "it assumes a plain tar archive", I don't know what it means. Can someone explains what is the -a option? Thanks.
tar(1)to the page on man7.org...and yeah if he's on cygwin / msys2 he can probably get man-db or so as well to useman. – Tom Yan Jun 29 '21 at 10:42--versionto find out if you want to. – Tom Yan Jun 30 '21 at 15:37the link tar(1) belongs to linux, rightis not necessarily a thing. – Tom Yan Jul 04 '21 at 21:54Another question related with my understanding, please correct me 1/ if I use tar to zip in windows without -a
Is it? 2/ so for every soft that from gnu, to check the usages we should use "man xxx"?
– Zx binhjy xZ Jul 05 '21 at 15:52tarwith e.g.-ato create a zip file.) – Tom Yan Jul 05 '21 at 16:07manis pretty much the standard way to read a manual (or "man page") of a program in Linux (and most other UNIX-like systems). If you are using cygwin / msys2 in Windows, you can probably rely on that as well. (But AFAIK Windows itself has not shipped themanprogram.) Also, the GNU project sort of endorse/prefer another form of manual, which is their own GNU info. (But their programs have man pages as well, just sometimes simplified.) – Tom Yan Jul 05 '21 at 16:12