Skip to main content

How to Extract RAR Files on Linux Using the Terminal

HardReset.InfoDecember 18, 20255 min364 views
4 connections·4 entities in this video→

Installing the Unrar Tool

  • πŸ’» Linux users can extract RAR files directly from the terminal using the unrar tool.
  • 🐧 For Ubuntu and Debian systems, install it with sudo apt install unrar.
  • πŸš€ On Fedora, the command is sudo dnf install unrar.
  • πŸ› οΈ Other distributions may have different package manager commands to install unrar.

Listing RAR Archive Contents

  • πŸ” To view the contents of a RAR file without extracting, use the command unrar l archive.rar.
  • πŸ“„ This command lists the files within the archive, showing their names and sizes.

Extracting Standard RAR Archives

  • πŸ“‚ To extract a normal RAR archive, use the command unrar x archive.rar.
  • ✨ This command will extract all files from the archive into the current directory.

Handling Password-Protected RAR Archives

  • πŸ”’ For RAR files protected by a password, you can extract them in two ways.
  • πŸ”‘ Method 1: Execute unrar x archive.rar and you will be prompted to enter the password.
  • πŸ’‘ Method 2: Use the command unrar x -pPASSWORD archive.rar, replacing PASSWORD with the actual password for a one-step extraction.
  • βœ… This second method is more convenient for archives with multiple files, as it avoids repeated password prompts.
Knowledge graph4 entities Β· 4 connections

How they connect

An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.

Hover Β· drag to explore
4 entities
Chapters2 moments

Key Moments

Transcript19 segments

Full Transcript

Topics10 themes

What’s Discussed

RAR filesLinuxTerminalunrarUbuntuDebianFedoraCommand Line InterfaceFile ExtractionPassword Protection
Smart Objects4 Β· 4 links
ProductsΒ· 3
MediaΒ· 1