LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-10-2010, 01:52 PM   #1
wastingtime
Member
 
Registered: Sep 2004
Posts: 86

Rep: Reputation: 17
how can I change the timestamp of a symlink


I have a directory containing files and symlinks to files elswhere

I make a copy of the directory like this

cp -rp dir/* new_dir

the files in new_dir have their original timestamps, but the symlinks have the current time.

touch -t does not operate on the symblink but on the files they reference.

is there a way to set the timestamp of the symlink to a time in the past?
 
Old 02-10-2010, 02:18 PM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Probably not although it may be in development. This LQ post and after have some background.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nautilus: change symlink behaviours? catkin Linux - Newbie 0 01-12-2009 11:53 PM
change the original file when i change the symlink to that file sailu_mvn Linux - Desktop 2 04-19-2007 04:16 AM
change timestamp for syslog biiiep Ubuntu 1 03-31-2007 08:38 AM
Change access.log timestamp,squid proxy gordonb Linux - Software 1 04-20-2006 12:28 AM
Timestamp Help jch02140 Linux - Newbie 7 03-17-2006 02:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:21 AM.

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
Open Source Consulting | Domain Registration