Linux – Making a duplicate of a path in Unix

directoryfilenameslinux

My Unix vocabulary is failing me. I have 5 billion images in /foo/live/images.

For the purposes of developing a new version of the app I'd like to make /foo/dev/images into a working path without making a copy of the images.

Is this a soft link? What's the right term? What's the command-line syntax to create the link?

Best Answer

Dead simple, it's just a symbolic link:

ln -s /foo/live/images /foo/dev/images

Just watch the directory permissions etc. To view the man page (all available options) for the ln command, enter the following at the prompt:

man ln
Related Question