In the following video-tutorial embedded in a series of videos for beginners, we will make a practical example of how to manage rare files from the terminal of our Linux operating system, in this case from Ubuntu.
The exercise is designed for beginners in this operating system, and by following all the steps, we will achieve ourselves, first install the necessary packages to compress and decompress files in rar, And then using the practical exercise compress and decompress without any problems.
For this exercise to bear fruit, it is advisable that while we follow the video tutorial, we go performing the exercise ourselves, In this way and with practice is how best we can stay with the concepts of what we are doing.
the orders which we will use in this one Practical exerciseor are as follows:
To install rare:
To install unrar:
- sudo apt-get install unrar
If this command will report us some kind of problem, which happened to me myself, we will add in the end -fix-missing being thus:
- sudo apt-get install unrar -fix-missing
To compress files we will use the command:
- rar a filename.rar files to include
- rar a filename.rar *
With the first order we will add the files 1-1, And with the second we will include all files that are within the directory in which we are located.
If what we want is to compress by adding one password in the .rar file, we will add -p at the end of one of the two orders.
per decompress it will be as simple as using the command unrar:
- unrar x nobre_del_rar.rar
- unrar x number_of_rar.rar route where we want to decompress it
With the first order we will unzip it to the directory we are in and with the second we will call it directory in which we want you to unzip it.
Although it may seem like a mess, if you do the exercise yourself and see the video-tutorial created for this purpose, you are sure to be much clearer, and a couple of times you repeat it sure you have basic concepts well clear.
More information – Terminal for beginners: Video-tutorial I