• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

7zr – File archiver with a high compression ratio (Command Examples)

by admin

7zr is a file archiver that shares similarities with 7z but has a specific focus on supporting .7z files. It is known for its high compression ratio, which allows for significant reduction in file sizes. However, it differs from 7z in terms of the supported file types.

The primary distinction of 7zr is that it exclusively supports the .7z file format. This means that it can compress files into .7z archives and decompress files from .7z archives. The .7z format is the native format associated with the 7-Zip software and is widely recognized for its efficient compression algorithm, which helps reduce the size of files while preserving their integrity.

As 7zr only supports the .7z format, it may not be as versatile as other archiving tools that support multiple file formats. However, if your specific requirement involves working exclusively with .7z files, 7zr can be a convenient and effective option.

Similar to other tools in the 7-Zip family, 7zr achieves its high compression ratio through the use of the LZMA algorithm. This algorithm employs a combination of dictionary compression, entropy coding, and other techniques to efficiently compress and decompress files, resulting in smaller file sizes without sacrificing data integrity.

To use 7zr, you typically interact with it via a command-line interface, providing commands to create .7z archives, extract files from .7z archives, and perform other operations related to the .7z format.

7zr Command Examples

1. [a]rchive a file or directory:

# 7zr a /path/to/archive.7z /path/to/file_or_directory

2. Encrypt an existing archive (including file names):

# 7zr a /path/to/encrypted.7z -p[password] -mhe=on /path/to/archive.7z

3. E[x]tract an archive preserving the original directory structure:

# 7zr x /path/to/archive.7z

4. E[x]tract an archive to a specific directory:

# 7zr x /path/to/archive.7z -o /path/to/output

5. E[x]tract an archive to stdout:

# 7zr x /path/to/archive.7z -so

6. [l]ist the contents of an archive:

# 7zr l /path/to/archive.7z

7. List available archive types:

# 7zr i

Summary

Overall, 7zr is a specialized file archiver that focuses solely on supporting .7z files. It offers a high compression ratio and can efficiently compress and decompress files in the .7z format. While it may have limited compatibility with other file formats, it can be an excellent choice if you specifically require compression and extraction of .7z archives.

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to Switch Module Streams in CentOS/RHEL 8
  2. netselect-apt: command not found
  3. quotaon command examples in Linux
  4. How to Install Apache, MariaDB, and PHP (FAMP) stack on FreeBSD 11
  5. How to Enable Password Aging in Linux with NIS
  6. How To Open A Port In CentOS / RHEL 7
  7. arecord: command not found
  8. How to Use Iperf to Test Network Performance in Linux
  9. join Command Examples in Linux
  10. LVM Configuration : Physical Volume (PV) Operations/Utilities

You May Also Like

Primary Sidebar

Recent Posts

  • aws ec2: CLI for AWS EC2 (Command Examples)
  • aws cur – Create, query, and delete AWS usage report definitions (Command Examples)
  • aws configure – Manage configuration for the AWS CLI (Command Examples)
  • aws cognito-idp: Manage Amazon Cognito user pool and its users and groups using the CLI

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright