Results 1 to 2 of 2

Thread: Create Symbolic Link in Unix or Linux

  1. #1
    Join Date
    Jul 2006
    Posts
    273

    Create Symbolic Link in Unix or Linux

    Hi previously we have shown you how to Create a symbolic link in Windows Vista. now we will show you how to 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.
    (\__/)
    (='.'=) This is Bunny. Copy and paste bunny into your
    (")_(") signatureto help him gain world domination

  2. #2
    Join Date
    Apr 2008
    Posts
    586

    Re: Create Symbolic Link in Unix or Linux

    Thanks it is exceptional working. i was looking for this.

Similar Threads

  1. How to create Hard Link in Linux
    By Mokamb0 in forum Operating Systems
    Replies: 5
    Last Post: 20-08-2010, 10:55 PM
  2. Difference between symbolic link and a physical link
    By Shell456 in forum Operating Systems
    Replies: 4
    Last Post: 25-02-2010, 10:30 PM
  3. How to create an alias for a directory in Unix
    By Bull50 in forum Operating Systems
    Replies: 3
    Last Post: 02-05-2009, 09:05 PM
  4. To run Linux AIM in Unix ?
    By Ebenezer in forum Operating Systems
    Replies: 3
    Last Post: 19-03-2009, 02:55 PM
  5. Creating Symbolic link on Windows Vista
    By Spykar in forum Tips & Tweaks
    Replies: 0
    Last Post: 03-09-2008, 02:58 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,991,288.36725 seconds with 17 queries