GNUTAR(1)
π GNUTAR(1) π
Hey bestie! Welcome to GNUTAR(1), straight out of SchilyΒ΄s USER COMMANDS. This is the gnutar page, and we're gonna get through every single flag together. Slay. π«Ά
π NAME π
gnutar β emulates the GNU version of the tar archiver.
β¨ SYNOPSIS β¨
gnutar command [ options ] file1 ... filen
π¦ DESCRIPTION π¦
Okay so this manual page documents the GNU version of tar, the archiving program designed to store files in and extract files from an archive file known as a tarfile. A tarfile can be made on a tape drive β iconic β but it's also super common to write a tarfile to a normal file.
The first argument to gnutar must be one of the options: Acdrtux, followed by any optional functions. The final arguments to gnutar are the names of the files or directories that should be archived. Using a directory name always implies that the subdirectories below it should be included in the archive. No cap. π
π COMMAND π
Bestie, one of these commands must be used:
-A,--catenate,--concatenateβ append tar files to an archive-c,--createβ create a new archive-d,--diff,--compareβ find differences between archive and file system--deleteβ delete from the archive (not for use on mag tapes!)-r,--appendβ append files to the end of an archive-t,--listβ list the contents of an archive-u,--updateβ only append files that are newer than copy in archive-x,--extract,--getβ extract files from an archive
π₯ OPTIONS π₯
Here's the full option wall, bestie β every flag, every default, every little detail. β¨
--atime-preserveβ don't change access times on dumped files-b,--block-size Nβ block size ofNx512bytes (defaultN=20)-B,--read-full-blocksβ reblock as we read (for reading4.2BSDpipes)-C,--directory DIRβ change to directoryDIR--checkpointβ print directory names while reading the archive-f,--file [HOSTNAME:]Fβ use archive file or deviceF(default/dev/rmt0)--force-localβ archive file is local even if has a colon-F,--info-script F,--new-volume-script Fβ run script at end of each tape (implies-M)-G,--incrementalβ create/list/extract old GNU-format incremental backup. Heads up: this feature did never work in the real GNU tar implementation, so we cannot support it.-g,--listed-incremental Fβ create/list/extract new GNU-format incremental backup. Same warning, bestie: this feature did never work in the real GNU tar implementation, so we cannot support it.-h,--dereferenceβ don't dump symlinks; dump the files they point to-i,--ignore-zerosβ ignore blocks of zeros in archive (normally mean EOF)-j,--bzipβ filter the archive throughbzip2.--ignore-failed-readβ don't exit with non-zero status on unreadable files-k,--keep-old-filesβ keep existing files; don't overwrite them from archive-K,--starting-file Fβ begin at fileFin the archive-l,--one-file-systemβ stay in local file system when creating an archive-L,--tape-length Nβ change tapes after writingN*1024bytes-m,--modification-timeβ don't extract file modified time-M,--multi-volumeβ create/list/extract multi-volume archive-N,--after-date DATE,--newer DATEβ only store files newer thanDATE-o,--old-archive,--portabilityβ write a V7 format archive, rather than ANSI format-O,--to-stdoutβ extract files to standard output-p,--same-permissions,--preserve-permissionsβ extract all protection information-P,--absolute-pathsβ don't strip leading/s from file names--preserveβ like-p -s.-R,--record-numberβ show record number within archive with each message--remove-filesβ remove files after adding them to the archive-s,--same-order,--preserve-orderβ list of names to extract is sorted to match archive--same-ownerβ create extracted files with the same ownership-S,--sparseβ handle sparse files efficiently-T,--files-from= Fβ get names to extract or create from fileF--nullβ-Treads null-terminated names, disable-C--totalsβ print total bytes written with--create-v,--verboseβ verbosely list files processed-V,--label NAMEβ create archive with volume nameNAME--versionβ printgnutarprogram version number-w,--interactive,--confirmationβ ask for confirmation for every action-W,--verifyβ attempt to verify the archive after writing it--exclude FILEβ exclude fileFILE-X,--exclude-from FILEβ exclude files listed inFILE-Z,--compress,--uncompressβ filter the archive throughcompress-z,--gzip,--ungzipβ filter the archive throughgzip--use-compress-program PROGβ filter the archive throughPROG(which must accept-d)
π EXTENDED OPTIONS π
The extended options are options taken from star. Yes, bestie, we're going beyond the basics. π¦
--helpβ prints a summary of the most important options forgnutar(1)and exits.--xhelpβ prints a summary of the less important options forgnutar(1)and exits.--versionβ prints thegnutarversion number string and exists.--debugβ print additional debug messagesxdebug=#β this one is listed with no extra description in the original, bestie.xd=#β set extended debug level-/β don't strip leading/s from file names-..β don't skip filenames that contain..in non-interactive extract--secure-linksβ don't extract links that start with/or contain..--aclβ handle access control lists--xfflagsβ handle extended file flagsbs=#β set (output) block size to#fs=#β set fifo size to#--no-fsyncβ do not callfsync()for each extracted file (may be dangerous).--do-fsyncβ callfsync()for each extracted file.--timeβ print timing info--no-statisticsβ do not print statistics--fifostatsβ print fifo statistics--no-fifoβ don't use a fifo to optimize data flow from/to tape--numericβ don't use user/group name from tape--zstdβ run the input or output through azstdpipe.
The options above are not defined by GNU tar.
For a complete documentation of the star based optione check star(1).
π EXAMPLES π
No examples are listed in this section on the original page, bestie. It's giving empty. π
πΈ ENVIRONMENT πΈ
No environment variables are listed in this section on the original page. π«Ά
π FILES π
No files are listed in this section on the original page. β¨
π SEE ALSO π
Go bother these pages, iykyk:
spax(1)suntar(1)scpio(1)tar(1)cpio(1)pax(1)rcp(1)mt(1)rmt(1)match(1)dd(1)sdd(1)rsh(1)ssh(1)star(1)star(4)rcmd(3)fssnap(1m)
π DIAGNOSTICS π
Nothing is listed in this section on the original page. π
β NOTES β
This gnutar implementation is based on the star implementation and does not implement all features of the original GNU tar program.
π BUGS π
No bugs are listed in this section on the original page. The section is literally just sitting there, bestie. π
π AUTHOR π
Joerg Schilling
Seestr. 110
D-13353 Berlin
Germany
Mail bugs and suggestions to:
joerg.schilling@fokus.fraunhofer.de or joerg@schily.net
π That's the whole page, bestie β Joerg Schilling, 2019/03/31, GNUTAR(1). π«Ά
π¦ where this page comes from
- nixos 26.05: s-tar 1.6
- nixpkgs unstable: s-tar 1.6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms