Nepedia
Back to Discover
Advanced Reader
💻

Archive file

technology Maturity 11-13 Next article →

An archive file is a digital container used to store one or more computer files. It does more than just hold data. It also stores metadata, which is information about the files themselves. This metadata can include file names, directory structures, and timestamps. Archives are vital for making data portable across different computer systems. They are also used for distribution and backups to reduce storage use.

To create an archive, a person uses a file archiver utility. This tool gathers the content and the metadata into a single file. One major function is concatenation, which means combining multiple files into one. This process helps with portability across heterogeneous systems. Heterogeneous systems are different types of computer environments. When sending a directory tree via email, an archive preserves the folder structure. It can even rename files that the target system might not support.

Moving a single archive file is often more efficient than moving many individual files. This efficiency happens because there is less per-file overhead for the computer. If the archive uses compression, the transfer becomes even faster. Compression is a method used to reduce the physical size of the data. Archives can also use encryption to keep the contents secret. Some archives even support self-extraction or self-installation. This allows the user to open the files without extra steps.

Archive files include several specialized features for data safety. They use error detection to ensure the information remains correct. For example, zip files use a cyclic redundancy check, or CRC. A CRC is a type of checksum used to find mistakes in data. Some formats, like RAR, include recovery records to fix errors. If an archive cannot fix itself, it might use separate parchive (PAR) files. These PAR files allow for error correction and the recovery of missing files.

There are many different types of archive formats available. Most formats are indicated by a file name extension or a file header. Common examples include zip, rar, 7z, and tar. Some formats are well-defined, while others are conventions used by many vendors. Java uses specific formats like JAR, which stands for Java archive. It also uses WAR, which stands for web archive. These formats can store an entire runnable deployment.

When archives are used for software distribution, they take on a new role. If an archive works with a package manager, it is called a package. These packages must follow a specific package format. Most of these formats require a manifest file to function properly. Specific examples include deb for Debian systems and APK for Android devices. Windows also uses self-extracting Windows Installer executables for this purpose.

Archives serve as a bridge between different computing needs. They connect storage management with efficient data transmission. By using these files, users can manage large amounts of data easily. They can split a large file into multiple, smaller files for easier handling. They can also create file patches to record changes made since a previous archive. This makes archives a fundamental part of how digital information is organized and moved globally.

511 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.