By default, the distributions Debian and Ubuntu (Debian based precisely on) can handle compressed files with the. tar. gz,. bz2. zip and some other less common. The problem comes when we need to use files with the. Rar format, created exclusively for the famous compressor WinRar.
Not being a free format, managing files such default is not included in our Debian / Ubuntu .However, we can add this functionality to our distribution with only a few steps that will allow us to compress (zip) and uncompress (unrar) files with the aforementioned format.
First of all, we must ensure that our repository list (/ etc / apt / sources.list) we added non-free repositories of our distribution. For Ubuntu users this is not necessary, since these repositories are added by default.
Now open a terminal and proceed to install rar and unrar with the following command:
sudo apt-get install rar unrar
Installation begins and within seconds we will have support for compressing and decompressing files. Rar in our distribution, either graphically (with the archive manager) or directly from the terminal.
To use it from the terminal, you also need to know some fairly simple commands that follow:
To unzip a file. Rar, from the console to place at the folder containing the file and type:
unrar x nombredelarchivo.rar
Where "nombredelarchivo.rar" is the name of the file to decompress. By contrast, if you only want to see the contents of the file, but without decompression, we use the command:
unrar one nombredelarchivo.rar
It's that simple. Any questions, clarification and / or suggestions, I would appreciate a comment on the post.
0 comments:
Post a Comment