Master da Web
Back to Blog

Handling .rar files (Ubuntu / Debian)

LucasNovember 28, 20121 min readUpdated on November 4, 2023
Handling .rar files (Ubuntu / Debian)

The “.rar” extension is a native format of the famous WinRar. Linux offers to install this extension, which is included in its repository.

Open the terminal and run the following command:

# apt-get install unrar

If the installation was successful, you can now extract a “.rar” file.

To extract from a “.rar” file, just run the command:

# unrar and file.rar

If you want to list what’s inside the “.rar” file:

# unrar l file.rar

To compress one or several files in “.rar” format:

# rar a masterdaweb.rar masterdaweb.txt

or

# rar a masterdaweb.rar masterdaweb-1.txt masterdaweb-2.txt

Tags#linux#rar
Share

Need Hosting or Servers?

Discover our VPS, dedicated servers and professional hosting solutions

Related Articles

View all articles