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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

lrztar Command Examples in Linux

by Deepika

lrztar is a wrapper script for the lrzip compression program, designed to make it easier to compress directories. The lrztar script automates the process of creating a tar archive of a directory, and then compressing the tar archive using lrzip. This allows the user to quickly and easily compress an entire directory and all of its contents into a single, highly compressed archive file. The resulting archive file can be decompressed using the standard tar and lrunzip tools. The lrztar script is particularly useful for large-scale data backup and archiving tasks, as it provides an easy way to efficiently compress entire directory trees into a single archive file. By using lrzip for the compression step, the resulting archive file is likely to be much smaller than would be obtained using other compression tools, which can save significant storage space and reduce the time required to transfer large datasets.

lrztar Command Examples

1. Archive a directory with `tar`, then compress:

# lrztar path/to/directory

2. Same as above, with ZPAQ – extreme compression, but very slow:

# lrztar -z path/to/directory

3. Specify the output file:

# lrztar -o path/to/file path/to/directory

4. Override the number of processor threads to use:

# lrztar -p 8 path/to/directory

5. Force overwriting of existing files:

# lrztar -f path/to/directory

Filed Under: Linux

Some more articles you might also be interested in …

  1. resolveip Command Examples in Linux
  2. envsubst: Substitutes environment variables with their value in shell format strings
  3. View files using – cat, more, tail, head and wc commands
  4. terminator Command Examples in Linux
  5. mycli: command not found
  6. top: command not found
  7. ebook-convert: Can be used to convert e-books between common formats, e.g. PDF, EPUB and MOBI
  8. authconfig Command Examples in Linux
  9. “aws s3 cp” Command Examples
  10. aws codecommit: AWS CodeCommit is a managed source control service that hosts private Git repositories

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright