How to Open / Extract RAR Files within Linux

To extract or open RAR files within Linux the unrar binary is used. Below provides the installation and basic operational syntax for the unrar program.

1. Installation


yum install unrar


apt-get install unrar
2. Basic Syntax

To extract a RAR file the following syntax is used:

unrar e contents.rar
3. Example
root@bt:~/Desktop/Downloads/Training# unrar e operating-system.rar 

UNRAR 3.90 beta 2 freeware      Copyright (c) 1993-2009 Alexander Roshal

Extracting from operating-system.rar

Extracting  os-6798-0.swf                                         OK
Extracting  os-6798-1.swf                                         OK

Rick Donato

Want to become a Linux expert?

Here is our hand-picked selection of the best courses you can find online:
Linux Mastery course
Linux Administration Bootcamp
and our recommended certification practice exams:
AlphaPrep Practice Tests - Free Trial