In your examples case, you compressed it with gzip by adding the z argument. Whats probably a little confusing here is the tar command has built in compression support, so you can add compression (gzip/bzip2/etc) during TAR creation. Zip a file - using only built-in Batch/VBS commands (Superuser. It usually holds multiple files (or unnecessarily just a single one). IEXPRESS - Create a self extracting ZIP file archive. “Put three grains of sand inside a vast cathedral, and the cathedral will be more closely packed with sand than space is with stars” ~ James Jeans Related commandsĬOMPACT - Compress files or folders on an NTFS partition. List the content of the gzip archive C:\TARS\: Verbosely create a gzip archive, called, of all files matching the pattern *.sql:Ĭ:\> tar -cvzf C:\TARS\ *.sql The tar utility exits with one of the following values: p Restore permissions (including ACLs, owner, file flags). O Write entries to stdout, don’t restore to disk. k Keep (don’t overwrite) existing files. C dir Change to dir before processing remaining archive Add entries from archive to output. exclude pattern Skip files that match pattern. Patterns If specified, only use entries that match.Ĭreate Options (when adding items to an archive): f filename Location of archive (default \\.\tape0). b # Use # 512-byte records per I/O block. The first option must be a mode specifier: Store, list or extract files in an archive (originally on tape - Tape ARchiver).īSD TAR.exe was added to Windows 10 (1903) from build 17063 or later.Ĭreate: TAR -cf archive-filename
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |