Results 1 to 5 of 5

Thread: Difference between symbolic link and a physical link

  1. #1
    Join Date
    Jul 2009
    Posts
    18

    Difference between symbolic link and a physical link

    Hello,

    I would like to know what is the difference between a symbolic link and a physical link and at the same time can we create a link between / bin / bash and / bin / monshell ? Is it possible or impossible and how to remedy the problem?

  2. #2
    Join Date
    Apr 2008
    Posts
    3,295

    Difference between symbolic link and a physical link

    Unix file is represented by a file name and an inode.inode will contain among others the permission and address of the data. The file name will help when he has to retrieve an inode number to access the data. A hard link is when two (or more) files point to the same inode. Removing one of two files, the other remains valid. Whereas a symlink is different in the sense that the original file will point to the inode containing the data, and the symlink will point him in an inode whose data is the path of the original file! What do when you destroyed the original file, the symlink is broken!

  3. #3
    Join Date
    Apr 2008
    Posts
    3,267

    Re: Difference between symbolic link and a physical link

    My friend,

    I would also like to add some point on restriction for the use of hard links which are as follows:-
    • You can not create a hard link that points to a file in another file system.
    • You can not create a hard link that points to a directory.

  4. #4
    Join Date
    Jan 2008
    Posts
    3,388

    Difference between symbolic link and a physical link

    Symbolic link is a shortcut and it is hardly used anywhere, For example on my system the the bash and tcsh are installed and the sh and csh are symlinks respectively on the bash and tcsh
    Code:
    -rwxr-xr-x 1 root root 772760 Apr 12 2008 / bin / bash
    lrwxrwxrwx 1 root root 4 February 24, 2010 / bin / csh -> tcsh
    lrwxrwxrwx 1 root root 4 January 10, 2010 / bin / sh -> bash
    -rwxr-xr-x 1 root root 349,952 January 5, 2010 / bin / tcsh

  5. #5
    Dr. V Guest

    Difference between symbolic link and a physical link

    I would like to say that you cannot create hard link between 2 different fs because the hard link is actually one more name pointing to the same inode as the original name and it is therefore necessary that the inode is in the same file system.

Similar Threads

  1. Replies: 4
    Last Post: 13-12-2010, 11:03 AM
  2. Changing link color when moving mouse over link in HTML
    By Cade in forum Software Development
    Replies: 5
    Last Post: 22-01-2010, 07:46 PM
  3. Create Symbolic Link in Unix or Linux
    By DANIEL 602 in forum Tips & Tweaks
    Replies: 1
    Last Post: 02-12-2008, 12:38 PM
  4. Creating Symbolic link on Windows Vista
    By Spykar in forum Tips & Tweaks
    Replies: 0
    Last Post: 03-09-2008, 02:58 PM
  5. D-Link DIR-655, Intel WiFi Link 4965a/g/n, Vista and 802.11n
    By CaspaR in forum Windows Vista Network
    Replies: 1
    Last Post: 14-07-2007, 04:03 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,711,627,597.87415 seconds with 17 queries