Sponsored Content
Full Discussion: Issue with unzip command
Top Forums UNIX for Advanced & Expert Users Issue with unzip command Post 302642729 by vkishore1234 on Friday 18th of May 2012 05:01:31 AM
Old 05-18-2012
Thanks Jim for the reply.

The Zip file is created on windows server and it is copied to unix server and unzipped it using unzip command on unix.
After unzipping, I opened the unix file in windows explorer .I can see the old files modified time stamp as 12:00 AM instead of the actual time.When I check the same files modified date time using ls -e command in unix,it is showing the correct date time on unix .What should I do to get the correct timestamp in windows explorer or Is there any way to change the cut off value for the older files in unix from 6 months to 1 year?



Regards,
K.K

---------- Post updated at 04:01 AM ---------- Previous update was at 01:23 AM ----------

Thanks Jim for the reply.

The Zip file is created on windows server and it is copied to unix server and unzipped it using unzip command on unix.
After unzipping, I opened the unix file in windows explorer .I can see the old files modified time stamp as 12:00 AM instead of the actual time.When I check the same files modified date time using ls -e command in unix,it is showing the correct date time on unix .What should I do to get the correct timestamp in windows explorer or Is there any way to change the cut off value for the older files in unix from 6 months to 1 year?



Regards,
K.K

Quote:
Originally Posted by jim mcnamara
So you are saying the files have the correct date, but a bad timestamp. I presume you mean file mtime.

1. how do you know the timestamps are "bad"? The TZ variable on UNIX affects this.
2. are these UNIX files, zipped on a UNIX machine.

Usually the file metadata is kept the way the originating system had it, so it seems really odd to me that the timestamps would be different from the original. If they are files (from a foreign OS) then this may not be true.

The reason for the six months thing is because
Code:
ls -l

by default displays mtime in a different format for "older" vs "newer" files. The cutoff for the change is 6 months to the second. The newer format has a timestamp.

example:
Code:
-rwxr-xr-x  1 jim             None   21251 Aug  8  2011 rot.exe
-rwxr-xr-x  1 Administrators None      838 Apr 27 18:14 shl.c


Last edited by vkishore1234; 05-18-2012 at 06:00 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

unzip command

The program asks, whether you want to replace, rename, etc., the file before unzipping. Is there any other command which can unzip the Winzip file in unix or any way so that this message will not come. As i have to run it thru the job scheduler. Thanks, Gaurav (1 Reply)
Discussion started by: gammit
1 Replies

2. HP-UX

How to Unzip a .ZIP file in Unix without using unzip cmd..?????

Hi All I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX). I don't have unzip cmd available in my curent Unix version Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file . Please elaborate on the commands aval and... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies

3. Shell Programming and Scripting

How to Unzip a .ZIP file in Unix without using unzip cmd..?????

Hi All I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX). I don't have unzip cmd available in my curent Unix version Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file . Please elaborate on the commands aval and... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies

4. Shell Programming and Scripting

unzip command

i want to know how to unzip a archive file by replacing the same folder with file name.. help me or not! :)http://www.unix.com/images/smilies/rolleyes.gif (6 Replies)
Discussion started by: shunan
6 Replies

5. Shell Programming and Scripting

Single command - unzip files from a tar command

I have a tar file that contains multiple .Z files. Hence I need to issue a tar command followed by a gzip command to fully extract the files. How do I do it in a single command? What I'm doing now is tar xvf a.tar (this will output 1.Z and 2.Z) gzip -d *.Z (to extract 1.Z and 2.Z) (9 Replies)
Discussion started by: ericlim
9 Replies

6. Shell Programming and Scripting

Issue with unzip command

I have a zip file on the unix server. when I unzip it using unzip command(unzip -q filename.zip) then the timestamp for the files less than 6 months to the current date are not retrieved instead It is setting the time as 12:00 AM to those files. I have some operations based on the datetimestamp of... (0 Replies)
Discussion started by: vkishore1234
0 Replies

7. UNIX for Dummies Questions & Answers

UNIX unzip command

Hi, i transferred a .zip file from windows to Unix. i'm getting error while doing unzip in Unix like command : bash-3.2$ unzip ******.zip message : Archive: *******.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk... (2 Replies)
Discussion started by: asv444
2 Replies

8. Shell Programming and Scripting

Unzip the .zip file without using unzip utility in UNIX

I have .zip file, i want to list all the files archived in the zip file. unzip utility is not working for me in unix. Please help me resolve this issue Thanks ganesh. (3 Replies)
Discussion started by: Ganesh L
3 Replies

9. UNIX for Advanced & Expert Users

Unzip command

Hi I have a zip file at linux while unziping those files using unzip command in rare scenario it copy the 0 size file to the destination. These files are .so file with their soft link.It is happening for one of .so file. (2 Replies)
Discussion started by: AnkitMogha
2 Replies

10. UNIX for Beginners Questions & Answers

Tar and unzip on single command

Hi All, First of all I don't know whether this is possible. or no. Thought of getting experts thought. I am having a tar file which contains zipped file in it . I tried individual command with extraction and it worked tar -tvf TRANS_279.tar -rw-rw-r-- qqa00 1394 2016-10-03 10:39:19... (8 Replies)
Discussion started by: arunkumar_mca
8 Replies
term::ansi::ctrl::unix(3tcl)					 Terminal control				      term::ansi::ctrl::unix(3tcl)

__________________________________________________________________________________________________________________________________________________

NAME
term::ansi::ctrl::unix - Control operations and queries SYNOPSIS
package require Tcl 8.4 package require term::ansi::ctrl::unix ?0.1.1? ::term::ansi::ctrl::unix::import ?ns? ?arg...? ::term::ansi::ctrl::unix::raw ::term::ansi::ctrl::unix::raw ::term::ansi::ctrl::unix::columns ::term::ansi::ctrl::unix::rows _________________________________________________________________ DESCRIPTION
WARNING: This package is unix-specific and depends on the availability of two unix system commands for terminal control, i.e. stty and tput, both of which have to be found in the $PATH. If any of these two commands is missing the loading of the package will fail. The package provides commands to switch the standard input of the current process between raw and cooked input modes, and to query the size of terminals, i.e. the available number of columns and lines. API
INTROSPECTION ::term::ansi::ctrl::unix::import ?ns? ?arg...? This command imports some or all attribute commands into the namespace ns. This is by default the namespace ctrl. Note that this is relative namespace name, placing the imported command into a child of the current namespace. By default all commands are imported, this can howver be restricted by listing the names of the wanted commands after the namespace argument. OPERATIONS ::term::ansi::ctrl::unix::raw This command switches the standard input of the current process to raw input mode. This means that from then on all characters typed by the user are immediately reported to the application instead of waiting in the OS buffer until the Enter/Return key is received. ::term::ansi::ctrl::unix::raw This command switches the standard input of the current process to cooked input mode. This means that from then on all characters typed by the user are kept in OS buffers for editing until the Enter/Return key is received. ::term::ansi::ctrl::unix::columns This command queries the terminal connected to the standard input for the number of columns available for display. ::term::ansi::ctrl::unix::rows This command queries the terminal connected to the standard input for the number of rows (aka lines) available for display. BUGS, IDEAS, FEEDBACK This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category term of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation. KEYWORDS
ansi, columns, control, cooked, input mode, lines, raw, rows, terminal CATEGORY
Terminal control COPYRIGHT
Copyright (c) 2006-2011 Andreas Kupries <andreas_kupries@users.sourceforge.net> term 0.1.1 term::ansi::ctrl::unix(3tcl)
All times are GMT -4. The time now is 06:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy