RAR is a most popular tool for creating and extracting compressed archive (.rar) files. When we download an archive file from the web, we required a rar tool to extract them.
(.rar)
RAR is available freely under Windows operating systems to handle compressed files, but unfortunately, rar tool doesn’t pre-installed under Linux systems.
On Debian and Ubuntu based distributions, you can easily install unrar package using the apt-get or apt program as shown.
$ sudo apt-get install unrar Or $ sudo apt install unrar
To open/extract a RAR file in current working directory, just use the following command with unrar e option.
# unrar e tecmint.rar
To install RAR command option in Linux, just execute following command.
# sudo apt-get install rar
To create a archive(RAR) file in Linux, run the following command with rar a option. It will create archive file for a tecmint directory.
rar a tecmint.rar tecmint