In windows,
the precondition to use jar is you must install JDK in your PC
the command line for packing folder is
-
jar cvfM folder.jar folder
the command line for unpacking folder is
In unix
upload the folder.jar to sever, and unpack folder.jar.
using this method, we can pack files in windows and unpack files in unix complete automatically
-
unzip folder.jar
-
zip -r folder.zip folder
tar also can pack/unpack
-
#pack
-
tar -cvzf folder.tar.gz folder
-
#unpack
-
tar -xvzf folder.tar.gz
-
tar -xvzf folder.tar.gz -C /var/tmp
-
#look up
-
tar -tf folder.tar.gz
阅读(182) | 评论(0) | 转发(0) |