Do you Know how to compress files and Director?
there are many command for Linux user that can help to make compress and Extract Compress files!
and you only need a linux disribution and Terminal!!!
we
prepare a list of commands for Archives and compressd files and
Director. you can make some compress files after that you read this
post. there are many Archiving Forma in linux like: gz, tar, zip, bz2.
|
|
Archives and compressed files
|
Command |
Description |
# bunzip2 file1.bz2 |
decompress a file called 'file1.bz2' |
# bzip2 file1 |
compress a file called 'file1' |
# gunzip file1.gz |
decompress a file called 'file1.gz' |
# gzip file1 |
compress a file called 'file1' |
# gzip -9 file1 |
compress with maximum compression |
# rar a file1.rar test_file |
create an archive rar called 'file1.rar' |
# rar a file1.rar file1 file2 dir1 |
compress 'file1', 'file2' and 'dir1' simultaneously |
# rar x file1.rar |
decompress rar archive |
# tar -cvf archive.tar file1 |
create a uncompressed tarball |
# tar -cvf archive.tar file1 file2 dir1 |
create an archive containing 'file1', 'file2' and 'dir1' |
# tar -tf archive.tar |
show contents of an archive |
# tar -xvf archive.tar |
extract a tarball |
# tar -xvf archive.tar -C /tmp |
extract a tarball into / tmp |
# tar -cvfj archive.tar.bz2 dir1 |
create a tarball compressed into bzip2 |
# tar -xvfj archive.tar.bz2 |
decompress a compressed tar archive in bzip2 |
# tar -cvfz archive.tar.gz dir1 |
create a tarball compressed into gzip |
# tar -xvfz archive.tar.gz |
decompress a compressed tar archive in gzip |
# unrar x file1.rar |
decompress rar archive |
# unzip file1.zip |
decompress a zip archive |
# zip file1.zip file1 |
create an archive compressed in zip |
# zip -r file1.zip file1 file2 dir1 |
compress in zip several files and directories simultaneously |
|
No comments:
Post a Comment