What is tarball in linux

Where the term «tarball» comes from?

I use unix distros every day and I started using them a long time ago but I never thought about the provenience of the word «tarball». I tried to search it on the dictionary but I didn’t find anything. At this point it could also be a completely invented term but I thought «better to ask».

*tarball` comes from the tar (tape-archive) software. It refers to the file archives that include several files. If you use zip files, tarballs are something similar.

It rolls easier off the tongue than «tar archive» — and unix geeks would detest the latter on general principle for being redundant as tar stands for Tape ARchive.

@perror thanks for the answer but maybe you missed «I use unix distros every day and I started using them a long time ago». I know what they are, i was just trying to figure out where the Tarball term comes from.

Ir’s a bit like a «furball» with cats, it’s a pack of things glued together by cat’s fur. So, here, it’s a pack of files glued together by tar . I guess. But, there is probably no deep meaning behind the scene, just a small joke made by computer scientist (at this time they were really funny, not as «corporate» as today! :-)).

1 Answer 1

tar (Tape ARchive) is the name of the program used to create an archive that contains several files, all glued together.

Tar is also a black and sticky substance obtained from hydrocarbons. It translates to catrame in Italian (from your name, I suppose you’re Italian).

Therefore, if you take a bunch of files and stick and roll all of them together via the tar program, you obtain a tar ball or tarball.

oh yes I’m italian and thank you for your explanation! Since there is no official meaning for the word «tarball» I’d prefer to take as «true» the answer of perror about cats :DDDD

Also, in real life a tar ball is a lump of solidified crude oil found in or on the sea, or washed up on shore.

Читайте также:  Linux working with usb

Источник

Что такое тарболлы Linux и как их использовать?

Согласно Википедии, тарбол – это компьютерный формат файла, который может объединять несколько файлов в один файл, называемый «тарбол», обычно сжатый.

Так как это помогает нам и для чего мы можем их использовать?

В прошлом tar-файлы создавались для хранения данных на лентах, а термин tar обозначает архивный архив на магнитной ленте. Хотя он все еще может использоваться для этой цели, концепция tar-файла – это просто способ сгруппировать множество файлов в один архив.

Каковы преимущества использования Tar-файла?

  • Вы можете сгруппировать большое количество файлов в один файл tar
  • Команда tar доступна в большинстве систем Linux, поэтому ее можно перемещать и извлекать без проблем совместимости.
  • Файл tar поддерживает время доступа к файлам.
  • Файл tar поддерживает права доступа к файлам.
  • Файл tar содержит символические ссылки
  • Вы можете записывать файлы tar на необработанные устройства, такие как лента, DVD, USB-накопители

Причины создания файлов Tar

Файлы tar при сжатии создают хорошие резервные копии и могут быть скопированы на DVD-диски, внешние жесткие диски, ленты и другие мультимедийные устройства, а также в сетевые папки. Используя файл tar для этой цели, вы можете извлечь все файлы из архива обратно в их исходные места, если вам нужно.

Файлы Tar также можно использовать для распространения программного обеспечения или другого совместно используемого контента. Приложение состоит из десятков различных программ и библиотек, а также другого вспомогательного контента, такого как изображения, файлы конфигурации, файлы readme и файлы make. Файл tar помогает сохранить эту структуру вместе для целей распространения.

Недостаток использования файлов Tar

В Википедии перечислены некоторые ограничения для использования файлов tar, которые включают, но не ограничиваются:

  • Поддержка операционной системы. Файлы tar широко используются на платформах UNIX и Linux, но для их открытия в Windows требуются сторонние инструменты
  • Tarbombs – в основном эти tar-файлы предназначены для расширения и размещения файлов в нескольких каталогах по всей вашей файловой системе. Это проблема при получении тарболов, а не при использовании ваших собственных. Как и большинство компьютерных технологий, ключом являются доверенные ресурсы.
  • Труднее найти и извлечь отдельные файлы из файла tar
  • При сжатии с помощью gzip вы должны распаковать весь файл, тогда как со стандартным файлом zip вы можете просматривать содержимое архива во время сжатия и извлекать отдельные файлы.
  • Файл tar может содержать два одинаковых файла с одинаковым расположением, что может привести к перезаписи одного файла при извлечении.

Как создать файл Tar

Для создания файла tar вы используете следующий синтаксис:

tar -cf tarfiletocreate listoffiles

tar -cf garybackup ./Music/* ./Pictures/* ./Videos/*

Это создает tar-файл garybackup со всеми файлами в моей папке с музыкой, изображениями и видео. Полученный файл полностью распакован и занимает тот же размер, что и исходные папки.

Читайте также:  Время выключения экрана линукс

Это не очень хорошо с точки зрения копирования по сети или записи на DVD, потому что это займет больше пропускной способности, больше дисков и будет медленнее копировать.

Вы можете использовать команду gzip вместе с командой tar для создания сжатого файла tar. По сути, сжатый tar-файл – это tarball.

Как перечислить файлы в файле Tar

Для получения списка содержимого файла tar используется следующий синтаксис:

Как извлечь файл Tar

Чтобы извлечь все файлы из tar-файла, используйте следующий синтаксис:

Дальнейшее чтение

  • Страницы руководства по GNU tar
  • Что такое файл tar
  • Пример использования команды tar
  • Краткий пример команды gzip

Источник

What is a tarball in Linux?

A Tarball is a commonly used name to refer to an archive file in the tar (Tape Archive) format. These files are produced by the command tar. These compression utilities generally only compress a single file, hence the pairing with tar, which can produce a single file from many files.

Why is it called a tarball?

In computing, tar is a computer software utility for collecting many files into one archive file, often referred to as a tarball, for distribution or backup purposes. The name is derived from “tape archive”, as it was originally developed to write data to sequential I/O devices with no file system of their own.

What is the purpose of a tar file?

A TAR file is an archive created by tar, a Unix-based utility used to package files together for backup or distribution purposes. It contains multiple files stored in an uncompressed format along with metadata about the archive. TAR files are commonly compressed into .

What benefit is the using a tar file in Linux?

The advantages of tar: Tar, when it comes to compression has a compression ratio of 50%, which means it compresses efficiently. Drastically reduces the size of packaged files and folders. Tar does not alter the features of files and directories.

What is difference between tar and gzip?

Tar is an archiver, meaning it would archive multiple files into a single file but without compression. Gzip which handles the . gz extension is the compression tool that is used to reduce the disk space used by the file. Most Windows users are used to having a single program compress and archive the files.

How do I use Gunzip in Linux?

Use the following method to decompress gzip files from the command line:

  1. Use SSH to connect to your server.
  2. Enter one of the following: gunzip file. gz. gzip -d file. gz.
  3. To see the decompressed file, enter: ls -1.

Are tarballs compressed?

tgz or . This just means that all the files have been packed into a tar file, which has been compressed with gzip to save space. The file name thus ends up having extension .

Читайте также:  Linux not in sudoers file

What opens a .tar file?

WinZip opens and extracts Compressed TAR Files—and many more formats. We created WinZip to open and extract TAR file format, and many more, including all of the following: RAR. 7Z.

How do I tar and gzip a file?

gz file is a Tar archive compressed with Gzip. To create a tar. gz file, use the tar -czf command, followed by the archive name and files you want to add.

Which is faster tar or zip?

Because zip is compressed, it takes less time to read than an uncompressed tar file. In my own tests, zip is faster. This is because for large archives, run time is dominated by disk speed. Because zip is compressed, it takes less time to read than an uncompressed tar file.

What is the use of gunzip in Linux?

gunzip command is used to compress or expand a file or a list of files in Linux. It accepts all the files having extension as . gz, . z, _z, -gz, -z , .

What is ZCAT used for in Linux?

Zcat is a command line utility for viewing the contents of a compressed file without literally uncompressing it. It expands a compressed file to standard output allowing you to have a look at its contents. In addition, zcat is identical to running gunzip -c command.

Is tar better than zip?

Compressing a tar file with three copies of our file is almost exactly the same size as just compressing the file by itself. ZIP seems to do about the same as gzip on compression, and given its superior random-access, it seems strictly better then tar + gzip….Experiments.

Copies Format Size
3 zip 4.3 MB

What is difference between TAR and gzip?

Can WinRAR open TAR files?

WinRAR provides complete support for RAR and ZIP archives and is able to unpack CAB, ARJ, LZH, TAR, GZ, UUE, BZ2, JAR, ISO, 7Z, XZ, Z archives. WinRAR supports files and archives up to 8,589 billion gigabytes in size.

How do you tar and untar?

How to open or Untar a “tar” file in Linux or Unix

  1. From the terminal, change to the directory where your . tar file has been downloaded.
  2. To extract or untar the file to the current directory, type the following, (Making sure to replace file_name.tar with the actual filename) tar -xvf file_name.tar.

Which is better zip or 7z?

In 2011, TopTenReviews found that the 7z compression was at least 17% better than ZIP, and 7-Zip’s own site has since 2002 reported that while compression ratio results are very dependent upon the data used for the tests, “Usually, 7-Zip compresses to 7z format 30–70% better than to zip format, and 7-Zip compresses to …

Источник

Оцените статью
Adblock
detector