Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , ,

Sponsored Links



Difference between symbolic link and a physical link

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 25-02-2010
Member
 
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?
Reply With Quote
  #2  
Old 25-02-2010
Lillebror's Avatar
Member
 
Join Date: Apr 2008
Posts: 3,259
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!
Reply With Quote
  #3  
Old 25-02-2010
MrChris-'s Avatar
Member
 
Join Date: Apr 2008
Posts: 3,237
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.
Reply With Quote
  #4  
Old 25-02-2010
Devasis's Avatar
Member
 
Join Date: Jan 2008
Posts: 3,367
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
Reply With Quote
  #5  
Old 25-02-2010
Dr. V
 
Posts: n/a
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.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Difference between symbolic link and a physical link"
Thread Thread Starter Forum Replies Last Post
Difference between Single Link DVI-D cable and Dual link DVI-D cable Everleigh Hardware Peripherals 4 13-12-2010 11:03 AM
Changing link color when moving mouse over link in HTML Cade Software Development 5 22-01-2010 07:46 PM
Create Symbolic Link in Unix or Linux DANIEL 602 Tips & Tweaks 1 02-12-2008 12:38 PM
Creating Symbolic link on Windows Vista Spykar Tips & Tweaks 0 03-09-2008 03:58 PM
D-Link DIR-655, Intel WiFi Link 4965a/g/n, Vista and 802.11n lzdesert Windows Vista Network 1 14-07-2007 05:03 PM


All times are GMT +5.5. The time now is 12:50 AM.