Tuesday, February 13, 2007

Creating a Symbolic Link or Removing a Symbolic Link

On occasion, it may be prudent to create a generic symbolic link to an application directory whose name frequently changes (e.g. version numbers appended to the directory name). Why? The site may have a number of scripts or other types of programs that reference the generic name. In this example, I want myexample to be listed in the /opt directory.

#cd /opt
#ln -s /raid/myexample_18 myexample
#ls
myexample (checking for the listing)

Start my shell script in the background.
#/opt/myexample/bin/start_program.sh &

To remove a symbolic link
#rm myexample

No comments: