File Compression

Archive files

Price range: €11.42 through €16.06
tar -cvf archive_name.tar file1.txt file2.txt file3.log

Explanation:

  • tar: The command used for creating and extracting archive files.
  • -c: Creates a new archive.
  • -v: Enables verbose mode, displaying the files being added to the archive.
  • -f: Specifies the filename of the archive.
  • archive_name.tar: The name of the tarball you want to create. Replace archive_name with your desired name for the archive file.
  • file1.txtfile2.txtfile3.log: These are the files to be archived. Replace these with the actual filenames you want to include in the archive.

Result:

This command will create a .tar archive named archive_name.tar containing the specified files (file1.txtfile2.txtfile3.log). The files will be archived in the current working directory unless full paths are provided.

Select options This product has multiple variants. The options may be chosen on the product page