«

»

Jan 12

Ubuntu Server: Symbolically Copy an Entire Directory

In an effort to improve file organization, without actually altering the original file names, i’ve found the ‘lndir’ tool to be pretty handy.  It’s actually pretty simple.  Just navigate to the directory you want your copy to end up and run the command on the directory you want to copy.

1
lndir "/dir/to/copy/"

After running the command feel free to move, delete, and rename to your hearts content.  Your original files will remain untouched, and the symbolic links will remember where they point.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>