zip and tar disadvantages
All unicode filename will be transform to weird character, so it makes broken paths and broken links
rar and unrar in Linux isn’t same version and so don’t use unrar to extract archived file by rar (It causes invalid full paths)
Redhat ( using RPMForge )
Compressing files, folder
$ rar a result.rar file1 file2 file3 fileN
Compressing dir and its subdirs (remember with trailing slash in the end)
$ rar a -r result.rar folder1/
Locking RAR file with password (adding
Listing content of RAR file
Extracting RAR file to current dir
Extracting RAR file to current dir with fullpath
WANT MORE ?
Asking it !
WHAT IF I TOLD U THAT A RAR FILE BIGGER 35 TIMES THAN ITS ORIGINAL FILE ?
$ echo 'a' > a.txt
$ rar a a.rar a.txt
RAR 3.80 Copyright (c) 1993-2008 Alexander Roshal 16 Sep 2008
Shareware version Type RAR -? for help
Evaluation copy. Please register.
Creating archive a.rar
Adding a.txt OK
$ ls -al
-rw-r--r-- 1 root root 77 May 17 14:18 a.rar
-rw-r--r-- 1 root root 2 May 17 14:17 a.txt