Skip to content
:: Ahmad Bakdash ::

:: Ahmad Bakdash ::

Nooo , don't be earnest

How to unrar unzip in Ubuntu

Posted on March 2, 2021January 14, 2022 By ubuntu No Comments on How to unrar unzip in Ubuntu

Ubuntu isn’t able to open .rar files by default. In order to unrar, you’ll need to install a small utility. Open a command line terminal and type the following commands to install it:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$ sudo apt update
$ sudo apt install unrar
$ sudo apt update $ sudo apt install unrar
$ sudo apt update
$ sudo apt install unrar
Open rar files

Now that the unrar utility is installed, you can use the following command syntax to extract files from a RAR archive into your current working directory.

you can also specify a different directory after the archive name if you wish to extract the files somewhere else.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$ unrar x files.rar /path/to/dir
$ unrar x files.rar /path/to/dir
$ unrar x files.rar /path/to/dir

If you’d like to see the contents of the RAR archive, without extracting any files, use the l option.

Specify multiple files to extract, if you’d like.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$ unrar x files.rar file1.txt file2.txt
$ unrar x files.rar file1.txt file2.txt
$ unrar x files.rar file1.txt file2.txt

How can I uncompress a *.7z file in Ubuntu and keep the directory structure?

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo apt install p7zip-full p7zip-rar
sudo apt install p7zip-full p7zip-rar
sudo apt install p7zip-full p7zip-rar

With this, Nautilus should have an option to uncompress 7-Zip Files.

I also recommend p7zip-rar so it also includes support for RAR files.

This is assuming you want to do it via GUI with Nautilus. If not, after downloading the packages above do the following:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
7z x PACKAGE.7z
7z x PACKAGE.7z
7z x PACKAGE.7z
 

that should eXtract the packages with full path.

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Telegram (Opens in new window) Telegram

Like this:

Like Loading...

Related

Ubuntu

Post navigation

Previous Post: How to Fix “Sorry, This File Type Is Not Permitted for Security Reasons” Error in WordPress
Next Post: Install / add fonts on Ubuntu

More Related Articles

Install / add fonts on Ubuntu Open Source
ubuntu server How to install Ubuntu Server 21.10 step by step. Network
How to install VPNGate on Ubuntu 20.04 Network
How to use Ventoy to create multi bootable USB drive Open Source
Install Ubuntu GRUB boot repair Open Source
How to add text-to-speech to GoldenDict? Open Source
استعادة الملفات المحذوفه عبر استخدام photorec في لينكس Open Source
How to install VPNGate on Ubuntu17.10 (update 18.04) Network

Leave a ReplyCancel reply

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1 other subscriber

Recent Posts

  • How to Install VPNGate on Ubuntu 21.10, Kali linux, and windows 10
  • How to install Ubuntu Server 21.10 step by step.
  • How to Install Docker On Ubuntu 20.04 LTS.
  • Install Ubuntu GRUB boot repair
  • Using Diskpart to repartition a USB stick on windows Os

Recent Comments

  • Don on Install Ubuntu GRUB boot repair
  • Md Zayed on How to add text-to-speech to GoldenDict?

Woo

dictionary Docker dual boo freevpn kali nginx photorec raspberry softether ubuntu server ubuntu tips usb VPNGate windows wordpress error

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 2025 :: Ahmad Bakdash ::.

Powered by PressBook Blog WordPress theme

%d