file archive(cli OR command)example
http://www.computerhope.com/unix/utar.htm
摘錄:
Creating a tar file:
tar -cvwf file.tar myfile.txt
In the above example, the system would create a tar named file.tar in the directory you currently are in. Wildcards could also be used in this command, for example: tar -cvwf file.tar *.txt would
archive all txt files in the current directory.
tar -cvwf home.tar home/
tar -cvf lampp.tar /opt/lampp/
In the above example command the system would create a tar file named home.tar
containing the home directory and place that file in the current directory.
unarchive
tar xvf htdocs.tar
http://www.linuxquestions.org/questions/linux-newbie-8/how-to-extract-tgz-125678/
.tgz and tar.gz files are pretty much the same. You extract them like this:
Code:
tar xvzf file.tar.gz tar xvzf file.tgz
沒有留言:
張貼留言