How to Make or Create Symbolic Link in Unix or Linux

Symbolic link (also known as symlink or soft link) is a special type of file that has reference that points to another file or directory, in the form of an absolute or relative path. Symbolic link can be used just like the target original file or folder, as it merely contains a text string that is interpreted and followed by the operating system to another file or directory.

Symbolic link is supported on most Unix-like (including Linux) operating systems, Windows Vista (see Windows Vista symbolic link, hard link and junction point) and to some degree in Windows 2000 and Windows XP. Although symbolic link is pointing to a target, it operates independently of its target (deletion of symbolic link does not been affected), but allows program to behave as if operating directly on the target file.

So how to create or make a symbolic link? To create a symbolic, use the following command syntax:

ln -s [target directory or file] [symlink shortcut]

For example, to link the /usr/local/lib/example directory to /example, use the following command:

ln -s /usr/local/lib/example /example

After creating the symbolic link above, /example will point to /usr/local/lib/example, and when user changes directory (CD) to /example, OS shell will automatically change it to /usr/local/lib/example directory.


Leave a Reply

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

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

how to make a symbolic link - symbolic link linux - make symbolic link linux - how to make a symlink in linux - linux symbolic link - make symlink - linux create symbolic link - how to make a symlink - create symbolic link mac - how to make a link in linux - how to make a symbolic link in linux - creating symbolic links in linux - create symbolic link linux - make symbolic link - how to create symbolic link in linux - make link linux - making a symlink - symbolic link syntax - symlink syntax - how to make symbolic link linux - how to make symbolic link - how to make symlink - howto create symbolic links to folders in linux - how to make links in linux - linux create symlink - how to create a link in linux - make a symlink - how to make symbolic link in linux - create a symbolic link in LINUX - linux symbolic link syntax - linux create link - how to create a symbolic link - linux how to make a symbolic link - make sym link - making symlinks - create soft links to directory in linux - linux making links - linux create link to directory - linux "make link" - symbolic link make - how to make a link linux - linux howto create symlink - making links linux - how to create a symbolic link in linux - how to make soft link in linux - linux make symbolic link - create symbolic link - how to make symlinks - create symlink linux - how to make symoblic link -