Many people keep on asking how to archive and compress a folder on a UNIX/Linux system.
Suppose you have a directory /usr/myDir and want to compress it to myDir.tar.gz
# tar –cvf myDir.tar /usr/myDir
# gzip myDir.tar
And to unzip and untar a ".tar.gz" file type
# tar -zxvf myDir.tar.gz
No comments:
Post a Comment