How to create a tar.gz file from the Windows 10 Pro command prompt
assumption
7-Zip must be installed.
The path must be passed through to the installation location (usually C:\Program Files\7-Zip).
tar.gz creation
Create a tar and then archive to tar.gz.
c:\>7z.exe a compression.tar // Directory 1 to be compressed Directory 2 to be compressed c:\>7z.exe a compression.tar.gz compression.tar
If there are multiple directories to be compressed, specify multiple files separated by one-byte spaces.
This completes the creation of the tar.gz file. tar.gz files are garbage and should be deleted.
コメント