packaging
---------------------------------------------------------------------------
group of files in a folder can be packaged into a single file using packaging.
Linux has provided a software utility "tar"
packaging= tar -cvf target.tar sourcedirectory
un-pack = tar -xvf target.tar
un-pack to a different directory = tar -xvf target.tar -C directory
to know the size of a file/directory contents we can use below command
du -h filename/directoryName
compression
------------------------------------------------------------------
The group of files of a folder cannot be compressed directly unless those are packaged
into a single tar file.
The compression technic will reduce the size of the original files
gzip
--------------------------------------------------------------
Linux has provided a software utility "gzip and gunzip"
gzip = compression
gunzip = uncompression
gzip target.tar = it creates target.tar.gz file with zipped contents in the same directory,
now here you wont find .tar file.
".gz" = indicates its an linux zip extension
gunzip target.tar.gz = this will unzip the .gz into .tar back
Comments
Post a Comment