×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

LOG IN TO YOUR ACCOUNT

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR PASSWORD?

AAH, WAIT, I REMEMBER NOW!

CREATE AN ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • INFO

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

What is the difference between archiving and compression?

by EITCA Academy / Saturday, 05 August 2023 / Published in Cybersecurity, EITC/IS/LSA Linux System Administration, Advancing in Linux sysadmin tasks, Archiving and compression on Linux, Examination review

Archiving and compression are two distinct concepts in the realm of Linux system administration. While both involve the manipulation of files and data, they serve different purposes and employ different techniques. Understanding the difference between archiving and compression is important for efficiently managing and securing data in a Linux environment.

Archiving refers to the process of collecting multiple files or directories into a single file, known as an archive. The primary purpose of archiving is to consolidate and organize data for storage, backup, or transfer. Archiving preserves the directory structure and file attributes of the original files, allowing for easy restoration at a later time. It also helps in reducing the overall storage footprint by consolidating multiple files into a single entity.

On the other hand, compression involves reducing the size of a file or set of files by encoding the data in a more compact form. Compression algorithms eliminate redundant or unnecessary information, resulting in a smaller file size. The compressed file can be decompressed to its original form when needed. Compression is primarily used to save storage space, reduce bandwidth usage, and speed up data transfer.

While archiving and compression can be used together, they serve different purposes and operate at different levels. Archiving focuses on file organization and consolidation, while compression focuses on reducing file size. Archiving typically precedes compression, as compressing an archive can yield even greater space savings.

In the Linux ecosystem, various tools are available for archiving and compression. The most commonly used archiving tool is tar (short for tape archive), which creates uncompressed archives. Tar archives are often combined with compression tools, such as gzip, bzip2, or xz, to create compressed archives. These compression tools use different algorithms to achieve varying levels of compression ratio and speed.

For example, to create a tar archive of a directory named "documents" without compression, the following command can be used:

tar -cf archive.tar documents

To compress the archive using gzip, the command would be:

tar -cf - documents | gzip > archive.tar.gz

Similarly, bzip2 and xz compression can be achieved by replacing "gzip" with "bzip2" or "xz" in the above command, respectively.

To extract the contents of an archive, the corresponding decompression tool is used. For example, to extract the contents of a gzip-compressed archive, the following command can be used:

tar -xf archive.tar.gz

Archiving and compression are distinct concepts in Linux system administration. Archiving involves consolidating files and directories into a single entity, preserving their structure and attributes. Compression, on the other hand, focuses on reducing file size by encoding data in a more compact form. While archiving helps in organizing and managing data, compression is primarily used to save storage space and speed up data transfer.

Other recent questions and answers regarding Examination review:

  • What precautions should be taken to avoid creating a "tar bomb"?
  • How can the "tar" command be used to extract files from an archive?
  • What is the purpose of the "z" option in the "tar" command?
  • How can the "tar" command be used to create an archive file?

More questions and answers:

  • Field: Cybersecurity
  • Programme: EITC/IS/LSA Linux System Administration (go to the certification programme)
  • Lesson: Advancing in Linux sysadmin tasks (go to related lesson)
  • Topic: Archiving and compression on Linux (go to related topic)
  • Examination review
Tagged under: Archiving, Compression, Cybersecurity, Data Management, Linux, System Administration
Home » Cybersecurity » EITC/IS/LSA Linux System Administration » Advancing in Linux sysadmin tasks » Archiving and compression on Linux » Examination review » » What is the difference between archiving and compression?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (105)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Medium publ.)
  • About
  • Contact

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.
Eligibility for EITCA Academy 90% EITCI DSJC Subsidy support
90% of EITCA Academy fees subsidized in enrolment

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on X
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF) in series of projects since 2007, currently governed by the European IT Certification Institute (EITCI) since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    EITCA Academy
    • EITCA Academy on social media
    EITCA Academy


    © 2008-2026  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP
    CHAT WITH SUPPORT
    Do you have any questions?
    We will reply here and by email. Your conversation is tracked with a support token.