Skip to content

unrar | Cheatsheet

The command used to extract these files is called "unrar". By default, unrar is not being installed on Linux, FreeBSD or UNIX like operating system. You can install unrar command with the help of apt-get or yum command.

Install UnRAR

wget -qO unrar.tar.gz
tar xf ~/unrar.tar.gz
make -C ~/unrar
make -C ~/unrar install DESTDIR="$HOME"
rm -rf ~/unrar{,.tar.gz}
echo "PATH=~/bin:$PATH" > ~/.bashrc
source ~/.bashrc

Uninstall UnRAR

rm ~/bin/unrar

Extract a rar archive

unrar x foo.rar

Extract 25 rar archive files at once

find . -maxdepth 1 -name '*.rar' -print0 \
    |xargs -0 -I {} -P 25 unrar x {}