• 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 not found

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.

If you encounter the below error while running the command lrztar:

lrztar: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install lrzip
Ubuntu apt-get install lrzip
Alpine apk add lrzip
Arch Linux pacman -S lrzip
Kali Linux apt-get install lrzip
Fedora dnf install lrzip
OS X brew install lrzip
Raspbian apt-get install lrzip

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. make: Nothing to be done for `default’
  2. How to allow or deny telnet login to specific users only in CentOS/RHEL
  3. gnome-calculator Command Examples in Linux
  4. NFSv4 mountpoint shows incorrect ownerships as nobody:nobody in CentOS/RHEL
  5. How to Run a Script When USB Devices Is Attached or Removed Using UDEV
  6. apktool – Reverse engineer APK files (Command Examples)
  7. Linux Command line Basics – Executing commands from the command line
  8. more: command not found
  9. How to configure xhost to be persistent across reboots in Linux
  10. Unable to login with GUI on CentOS/RHEL 7

You May Also Like

Primary Sidebar

Recent Posts

  • “glab issue” Command Examples
  • “glab auth” Command Examples
  • “glab alias” Command Examples
  • gixy Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright