How to use the Linux operating system Rar compressed file package

  
one. Download RAR for Linux
Download: http://www.rarlab.com The downloaded file is rarlinux-3.6.0.tar.gz, will Save it to the ~/downloads directory two. Unpack the package
I want to extract the file to the /opt directory, but the /opt directory only the super user has write permission, so go to the super user [songyadong @walter downloads]$ su tar command to extract to /opt directory, the result will be generated in /opt directory rar directory [root@walter downloads]# tar xzvf rarlinux-3.6.0.tar.gz --directory=/opt Create a symbolic link
View the /opt/rar directory and find that there are already two programs, rar and unrar. You can use it directly without compiling. For convenience, create two symbolic links in /usr/bin. You can use the rar and unrar commands directly under the terminal. [root@walter downloads]# ln -s /opt/rar/rar /usr/bin/rar [root@walter downloads]# ln -s /opt/rar/unrar /usr/bin/unrar Note the above two commands are also Must be under the superuser. Exit the superuser after the operation is complete. If you do not use the above link symbol to add the rar command to the environment variable, you can also do the following: > PATH=$PATH:/opt/rar >export PATH Note: Adding PATH must be added after PATH=$PATH otherwise it will destroy System environment variables

Copyright © Windows knowledge All Rights Reserved