Knowledge Base : Glossary : Suggest a Question
Search The Knowledge Base
Browse The Knowledge Base
Knowledge Base : Linux : Compress

Compress the data

How to compress data in linux ?
We can use tar command in linux to compress the data or dump.

Usage:-
tar cvzf USER-DEFINED-NAME-NEW.tar.gz SOURCE-FILENAME/FOLDER

Example:-
tar cvzf SQLDUMP20120308.tar.gz sqldumpp20120308.dmp
- where SQLDUMP20120308.tar.gz is the user defined NEW name (DESTINATION)
- where sqldumpp20120308.dmp is the required file name to compressed (SOURCE)

NOTE: Please take care while compressing the data with correct SOURCE-FILE NAME and DESTINATION-FILE-NAME
---

How to extract in linux ?
We can extract the compressed dump in the above

Usage:
tar xvf COMPRESSED-FILENAME.tar.gz

Example:-
tar xvf SQLDUMP20120308.tar.gz
-where SQLDUMP20120308.tar.gz is the compressed data , which contains our dump file's


How to extract the file in windows?
We extract the tar compressed dump .tar.gz file in windows using winrar application as normal behaviour.

Related Articles
There are no related articles


Viewer Comments Add Comment
No viewers have posted comments

Powered By AutoKB