![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community. |
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Symbolic Links | rcarnesiii | AIX | 1 | 08-17-2005 02:57 PM |
| funny symbolic link being created | larryase | UNIX for Dummies Questions & Answers | 0 | 12-06-2004 08:46 PM |
| cp a dty without symbolic links? | JAKEZ | SUN Solaris | 7 | 09-21-2004 12:55 PM |
| Too many levels of symbolic links | Bab00shka | UNIX for Dummies Questions & Answers | 2 | 09-19-2003 12:15 PM |
| Symbolic Links for a File | b_u_n_1234 | UNIX for Dummies Questions & Answers | 4 | 03-06-2002 12:58 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
change created and modification time if symbolic links
Hi,
I am trying to duplicate a symbolic link, the new link should be the exact replica of the original one, with same file attributes, permissions, owner, group and even the time. i m successful in changing the owner and group, but when i try to change the time using utime, the time of the file which is pointed to by this link get updated. for example, there is file1 and file1_link is a symbolic link to file1. something like this: lrwxrwxrwx 1 avni avni 5 Feb 27 11:44 file1_link -> file1 -rw-rw-rw- 1 avni avni 2061 Feb 26 18:47 file1 now i have to duplicate file1_link so that i have lrwxrwxrwx 1 avni avni 5 Feb 27 11:44 file1_link_dup -> file1 but instead i get lrwxrwxrwx 1 avni avni 5 Feb 28 11:30 file1_link_dup -> file1 when is do utime for file1_link_dup the result is something like this: lrwxrwxrwx 1 avni avni 5 Feb 27 11:44 file1_link -> file1 -rw-rw-rw- 1 avni avni 2061 Feb 27 11:44 file1 lrwxrwxrwx 1 avni avni 5 Feb 28 11:30 file1_link_dup -> file1 can any body tell how this can be achieved. I read about lutimes, but its not on my system. I am new to UNIX and hence have little knowledge of the various distributions and commands available. Thanks in advance. |
|
||||
|
hi guys....
all the searches for any hint to modify the time for links have failed. It seems to be a hopeless search. I thought I would get some information on this from this forum..... Anyways, what I feel is that, there is entry of the link in FAT, and hence there is some inode pointing to the link. By any means can I directly modify that inode entry, and is doing so safe?( Safe in the sense, directly modifying FAT entry, wouldn't that create any problems?) |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|