Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-17-2008, 05:33 AM   #1
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 593

Rep: Reputation: 30
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
Old 12-17-2008, 05:45 AM   #2
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48

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

Last edited by eco; 12-17-2008 at 05:47 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Archiving files using a time stamp. HunterColt22 Programming 3 06-11-2007 01:29 AM
Time stamp on uploaded files incorrect. Helfrick Linux - Networking 5 10-22-2006 11:44 AM
Incorrect time stamp on uploaded files atif-1 Linux - General 1 12-21-2005 05:01 PM
Time stamp in Samba is 11 hours behind time stamp in Linux Linh Linux - General 3 09-04-2003 12:44 PM
Remove files by time stamp evione Linux - Newbie 1 07-15-2003 09:35 AM

All times are GMT -5. The time now is 05:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration