Linux

Create a RAR file in linux

Here are the steps to create a rar file in linux.

Step 1:

Install a rar package by the following command

$ sudo apt-get install rar

Step 2:

After that just typed the command to create a rar archive of a file or directory

$ sudo rar a filename.rar input

Note

filename.rar is the output file.

input is nothing but a directory.

Keep Sharing…..

Advertisements
Linux

How to extract RAR files in Ubuntu

For extracting a RAR Files in Ubuntu,I have got a solution.
Install the package unrar

$ sudo apt-get install unrar

then run the below command to extract the files.

$ unrar x filename.rar

To list what are all the files inside the rar file.

$ unrar l filename.rar