LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 12-17-2008, 06:33 AM   #1
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 579

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, 06:45 AM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
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

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


Reply


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 02:29 AM
Time stamp on uploaded files incorrect. Helfrick Linux - Networking 5 10-22-2006 12:44 PM
Incorrect time stamp on uploaded files atif-1 Linux - General 1 12-21-2005 06:01 PM
Time stamp in Samba is 11 hours behind time stamp in Linux Linh Linux - General 3 09-04-2003 01:44 PM
Remove files by time stamp evione Linux - Newbie 1 07-15-2003 10:35 AM


All times are GMT -5. The time now is 12:35 PM.

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