ln -fs [source] [target]

Posted in Mac, Other, Uncategorized on Mar 18, 2007

So today I used the ln utility or link utility, so here is how you make a symbolic link, trust me they are very useful especially when you have external Hard Drives.

Open the Terminal. Type, cd ~/ that will put you in your home directory.
Okay now. look for your target, in my case I was practicing some Ruby On Rails stuff because I am a noob at it. Not stupid just new with it and I don’t always have time, anyways the case is that I keep all my RoR files in my external hard drives which has the path /Volumes/Mac\ HD/FernyB/~ror

I get tired or typing that everytime so I finally created a symbolic link in my home directory. So now I type
cd ~/~ror and that will drop me into the directory where I keep my RoR files which again is /Volumes/Mac\ HD/FernyB/~ror

To create the symbolic link type ln -fs /Volumes/Mac\ HD/FernyB/~ror ~/~ror
So now when I am in my home directory all I type is cd ~/~ror and this will put me into the /Volumes/Mac\ HD/FernyB/~ror directory. So if I type pwd the path will show as /Users/FernyB/~ror.

See that is why symbolic links are cool….

Comments are closed.

  • Recent Comments