• Home
  • Docker
  • Kubernetes
  • LLMs
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • Archived
Linux-Ubuntu | tar -- manipulate tape archives
  1. Notes
  2. Examples
  3. Command Help (man tar)

  1. Notes

    You can use the options '-z' or '-j' to either redirect the output to the gzip or bzip2 commands for compression.

    You can use gzip and gunzip to compress and decompress archive files: gzip -- compression/decompression
  2. Examples
    • Create an archive file:

      • Archive a folder:

      • Archive only the content of the folder:

    • List archive contents:

      • List archive contents to standard output:

      • Use the -v option to show additional details about the archive contents:

    • Extract archive contents to disk:

      • The archive contents will extracted to the folder "folder1":

      • Use the -m option to not extract modification time:

    • Archive a file and compress it using the option '-z':

    • Uncompress a file and extract the archive file using the option '-z':
  3. Command Help (man tar)
    The following options decide which mode the command tar will use:

    The following additional options can be used:
© 2025  mtitek