Just some commands about archiving for command line. Should work on all Linux distributions.
Make .zip archive:
zip -r name_for_the_zip_file.zip file/or/dir/i/want/to/zip
Extract .zip archive:
unzip dir/to/the/file.zip
Make .rar archive:
rar a name_for_the_rar_file.rar file/or/dir/i/want/to/rar
Extract .rar archive:
rar e dir/to/the/file.rar
Make .tar archive:
tar cf name_for_the_zip_file.tar file/or/dir/i/want/to/tar
Extract .tar archive:
tar xf dir/to/the/file.tar
Make .tar.gz archive:
tar czf name_for_the_zip_file.tar.gz file/or/dir/i/want/to/gzip
Extract .tar.gz archive:
tar xzf dir/to/the/file.tar.gz
Make .tar.bz2 archive:
tar cjf name_for_the_zip_file.tar.bz2 file/or/dir/i/want/to/bzip
Extract .tar.bz2 archive:
tar xjf dir/to/the/file.tar.bz2
No comments:
Post a Comment