Skip to main content

Linux Compress and zip Commands|How to unzip and compress in Linux|

 


Linux Compress and zip Commands|How to unzip and compress in Linux|

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

Popular posts from this blog

Linux cmp and diff commands|Linux commands for devops |difference between cmp and diff

Linux cmp and diff commands|Linux commands for devops |difference between cmp and diff CMP = command is used for comparing the byte by byte of text information of a file and outputs the first difference of the file. cat list1.txt green blue yellow white cat list2.txt green blue black white cmp list1.txt list2.txt output:- list1.txt list2.txt differ: byte 6, line 2 ------------------------------------------------------------------------------------------------------------------------------------- diff = it is used for comparting two text files and displays all the mis-matches in the files. In addition it displays special symbols helping us in understanding what we should do to make those two files identical. a = add c = change the text of the file d = delete line In addition to this it displays the mis-match lines with notation. = indicates the right side file = indicates suggestion should be applied to left side file 2,5c3 =in the left file from 2 - 5 lines should be replaced ...

Record script using bad boy tool 2020|Jmeter script recording using badboy tool and validate script|

Apache JMeter Script Recording with BadBoy|How to Record script using BadBoy tool|  Download tool :https://badboy1.software.informer.com/download/ Recordig using bad boy tool  using for mostly .net and java applications there are 3 steps to actually getting a load test running with Badboy: 1. Recording your script. 2.Parametrizing your script with a lot of users and their associated user information,  and setting think times in the script. 3.Running the script with all your users, and gathering and analyzing the results,  hopefully in a graph format.