Compress file or directory using RAR archive tool on Linux shell - LinuxConfig.org

Here is a quick config tip on how to compress and extract files using RAR archive utility. First let's see how we can compress directory using RAR. In our example we have a directory called my_files containing five files:
This is a companion discussion topic for the original entry at https://linuxconfig.org/compress-file-or-directory-using-rar-archive-tool-on-linux-shell