The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-16-2008
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,739
IF you need two directories to match, in terms of actual file content as well as filenames,
then copy all the diifferent files from dir2 to dir1. Remove dir2 completely. Create dir2 as a link to dir1. Then you do not have to worry about synchronization. This assumes the directories are mounted on the same unix box. Otherwise, NFS mount dir1 on the remote box as dir2. In this case dir2 should not be at root level, ie. literally not : /dir2