There are multiple packages to archive, compress and unpack the files and directories. Below are few of them.
gzip
gunzip
tar
bzip2
star
gzip cannot compress the directory.
tar is used to archive and not compress the files
TAR Syntax:

-c : create
-f : filename(new)
-f : filename(new)
-v: verbose
-z: gzip
extact tar:

Uncompress and extract using tar:

star:
star command is powerful than tar. Example: the output of a command can be archived.
# star –c –f=<<file-name.star>> file1 file1 dir1 dir2 => Create

Uncompress and extract using tar:

star:
star command is powerful than tar. Example: the output of a command can be archived.
# star –c –f=<<file-name.star>> file1 file1 dir1 dir2 => Create
# star –x
–f=<<file-name.star>> => Extract
# star –cz
–f=<<file-name.star>>
file1 file2
=> create and compress
No comments:
Post a Comment