Create Tar and GZip files under Unix


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Create Tar and GZip files under Unix
# 1  
Old 05-29-2012
Create Tar and GZip files under Unix

Hi All
I have 2 tar files and inside a Gzip file (actually its folder) that i got from a Unix user to check the code for him and find some problem.
I decompress the Tar file and use 7-ZIP to open the Gzip file and Extract all folders and files.
I found the code problem and change it but now when i try to pack it back into GZIP and TAR then the system dont recognize it as Unix file.
In the properties of the Tar file it used to say UNIX but now it say FAT because i work under windows.

Does anyone know how to change this property of the host or get me solution to Tar the files and keep Unix inviroment?
I download CYGWIN and worked threw there on TAR files but still it doesent say UNIX under host and the system cant upgrade it

Hope someone can help
# 2  
Old 05-29-2012
Welcome to the forum.

With most of the windows tools ( winrar and 7-zip ) you can only extract the Unix-like archives and not re-pack them.

Cygwin, However does the same job like you are on Unix like environment.
If you have a tar.gz archive, I would suggest to extract and re-pack in cygwin only.

Although there is a GNU tar for win32 systems you might want to look.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Create Tar files

Hi, the folder /home/nandy/test will have two files called notepad1 nodepad2 when i issued /home/nandy/test> tar -cvf componse.tar ./notepad1 ./notepad2 and no error /home/nandy/test> tar -cvf nan.tar . --> this creates nan.tar with the below message nan.tar same... (1 Reply)
Discussion started by: Nandy
1 Replies

2. Shell Programming and Scripting

How to create zip/gz/tar files for if the files are older than particular days in UNIX or Linux?

I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in current directory and sub-directories also? I found one command which is to create gz file for the... (4 Replies)
Discussion started by: Mallikgm
4 Replies

3. Shell Programming and Scripting

tar and gzip files

Hi Guys, I am using RHEL5 and Solaris 9 & 10. I want to tar and gzip my files then remove them after a successful tar command... Lets say I have files with extension .arc then I want to tar and gzip these files. After successful tar command I want to remove all these files (i.e .arc). ... (3 Replies)
Discussion started by: Phuti
3 Replies

4. Shell Programming and Scripting

Need help to tar and gzip files per date

hi, I have multiple files created per date every day. I want to be able to tar all the files older than 7 days into a single file and then gzip that tarred file and move it to a separate partition. Then delete the actual files. Eg - "ls -l" shows Dec 8 has 6-8 files created. I want to tar... (4 Replies)
Discussion started by: vishal7
4 Replies

5. UNIX for Advanced & Expert Users

How to create a Tar of multiple Files in Unix and FTP the tar to Windows.

Hi, On my Unix Server in my directory, I have 70 files distributed in the following directories (which have several other files too). These files include C Source Files, Shell Script Source Files, Binary Files, Object Files. a) /usr/users/oracle/bin b) /usr/users/oracle... (1 Reply)
Discussion started by: marconi
1 Replies

6. UNIX for Advanced & Expert Users

Amoung tar and gzip whiich unix command is more practical with respect to space manag

Hi All Can any body help me out. Amoung tar and gzip whiich unix command is more practical with respect to space management and file restoration. Eg if I use tar or gzip which will be more helpful to reduce the space and during the file restoration. Please help me out. regards... (3 Replies)
Discussion started by: manas6
3 Replies

7. UNIX for Dummies Questions & Answers

tar and gzip

Hi, I would like to have a combined gzip and tar that will compress and create multiple output tar.gz files. I want to have multiple files output because i cannot create an archive because there is no more space on my harddisk. I cannot transfer it locally because of slow connection. I want to... (3 Replies)
Discussion started by: tungaw2004
3 Replies

8. UNIX for Advanced & Expert Users

tar/gzip/gz...which one to use?

P0251WLADC.svm_wl1 > /svm_wl1/billing/data/server/archive/ALLEVT $ du -k FEB2006 22050224 FEB2006 As you can see,i have a folder called "FEB2006" which is around 22 GB. i guess zip or compress wont work...( i don know how do we compress a folder) i wished to use ""tar" ( i suppose... (5 Replies)
Discussion started by: abhijeetkul
5 Replies

9. UNIX for Dummies Questions & Answers

Create and pw protect .tar files

Ok here at work I have been charged with finding a way to create a password protect .tar files from the command line. Now i have yet to actully sit down and learn UNIX yet, but that is one of my next todo's. Anyway my questions is I have been surfing in search of a solution and the closest answer... (5 Replies)
Discussion started by: clovell
5 Replies

10. UNIX for Dummies Questions & Answers

how to install gzip.tar in sco unix os

thanks (1 Reply)
Discussion started by: dsun5
1 Replies
Login or Register to Ask a Question