Saturday, November 03, 2007

ln -s examples

ln is the command used to link files. ln -s creates a soft link "from" a file "to" a file.

Suppose you have two mounts, one with sufficient disk space (new) and the other without ample disk space (old) and you need to create a soft link so that when you create a new file in /old it will actually be created in /new

cd /old
mkdir /new/directory
ln -s /new/directory /old/directory

Labels: ,

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home