LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   time stamp of files (https://www.linuxquestions.org/questions/linux-general-1/time-stamp-of-files-691181/)

ZAMO 12-17-2008 05:33 AM

time stamp of files
 
Hi all,


I got a ???? myself. I copy a file say Jack.txt from directory abc to directory xyz. Is there a way to find out the exact time of jack.txt copied into xyz?

As much as suggestions invited :)

eco 12-17-2008 05:45 AM

Hi,

The time on the file should be the time of the copy.

Here is a quick test I did:

$ echo `date` > file
$ ls -ld file
-rw-r--r-- 1 desa956 desa956 29 2008-12-16 20:34 file

$ cp -v file cp/
`file' -> `cp/file'

$ ls -ld cp/file
-rw-r--r-- 1 desa956 desa956 29 2008-12-16 20:35 cp/file

Ignore my date/time, I needed to run an ntpupdate on my test box ;)
-eco


All times are GMT -5. The time now is 02:38 PM.