• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / How To / How To Extract RAR File In Linux Using Command In Ubuntu Terminal

How To Extract RAR File In Linux Using Command In Ubuntu Terminal

By Sourabh / October 8, 2024 Category: How To, Ubuntu

How to extract RAR file in Linux using command in Ubuntu Terminal. This tutorial explains how to open rar file in Linux Ubuntu command line.

To extract and open RAR files on Linux Ubuntu, we’ll use the unrar tool. In simple words, unrar is a commandline utility to list, test, or extract files from RAR.

The unrar command line application can be used for extracting compressed Roshal Archive (.rar) files on Unix-based operating systems, such as Linux, Ubuntu, Mint, CentOS, Kali Linux and others. The unrar command the following syntax:

unrar command [switches] archive {files | @listfiles} [path_to_extract]

To install unrar, open a terminal and run the following commands:

$ sudo apt-get install unrar

Install unrar on Ubuntu Linux using Source

On 64 Bit Systems

# cd /tmp
# wget https://www.rarlab.com/rar/rarlinux-x64-623.tar.gz
# tar -zxvf rarlinux-x64-623.tar.gz
# cd rar
# sudo cp -v rar unrar /usr/local/bin/

On 64 Bit Systems

# cd /tmp
# wget https://www.rarlab.com/rar/rarlinux-x32-623.tar.gz
# tar -zxvf rarlinux-x32-623.tar.gz
# cd rar
# sudo cp -v rar unrar /usr/local/bin/

Once installed, to open/extract a RAR file in a specific path or destination directory, just use the e option, it will extract all the files in the specified destination directory. the command will have the following usage sytnax:

$ unrar e sourcedigit.rar

If you want to extract files with full path, use the parmeter x with command as shown below:

$ unrar x sourcedigit.rar

If you want to extract all members of sourcedigit.rar into the current directory only, use the parameter e and if you want to test sourcedigit.rar, use the t command option. That’s the end of this tutorial.

Primary Sidebar

Latest Posts

Clear History In Linux Terminal Permanently

How To Create Zip File In Ubuntu Terminal With Password

How To Check Difference Between Two Files In Linux Ubuntu

How To Check Kernel Installed Date In Linux Command Line

Ubuntu 25.04 ‘Plucky Puffin’ Is Available To Download

How to Login as Root User in Linux Terminal

Install Firefox In Ubuntu Terminal Command Line

How To List All Kernel Modules That Are Loaded In Ubuntu

Enable Ubuntu Auto Login Without Password

Download Ubuntu 25.04 Official Default Wallpapers

© 2025 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap