The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Differentiate Soft and Hard Link balu_solaris UNIX for Dummies Questions & Answers 4 01-23-2009 05:18 PM
need some info about symbolic link and hard link detective linux UNIX for Dummies Questions & Answers 2 01-08-2008 07:36 AM
hard/soft link question Browser_ice UNIX for Dummies Questions & Answers 1 08-19-2006 03:13 AM
Difference between hard link and soft link in unix RAJACHOKALINGAM UNIX for Dummies Questions & Answers 2 08-01-2006 05:10 AM
Differences between hard link and soft link penguin-friend UNIX for Advanced & Expert Users 3 03-08-2002 03:49 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-28-2008
skyineyes skyineyes is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 150
Hard Link vs SOft Link????

Hi

PLease let me know the usage of Hard Link vs Soft Link

i.e what is the basic difference and what happens when one file is changed or deleted in both the cases???

thanks
  #2 (permalink)  
Old 05-28-2008
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,938
Again, this looks like homework. Please do not post homework.

You are obviously able to access the Internet since you are posting here. Do a web seach on the topic and you will find all the information on ln(1) that you could ever wish for.

If you have no access to UNIX/Linux man pages, simply seach the Web for "linux man ln(1)" or similar.
  #3 (permalink)  
Old 05-28-2008
Franklin52 Franklin52 is offline Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,342
As mentioned in one of your other posts, read some books or tutorials for this basic question:

Unix Tutorials/Programming Tutorials/Shell Scripting Tutorials

Regards
  #4 (permalink)  
Old 05-29-2008
bathija bathija is offline
Registered User
  
 

Join Date: May 2008
Posts: 6
hard lick-- used in cases when you want the link to be in the same file system. In this case the inode for both link and the file is the same. If you want to move the shardlink to another location or you want to move the original file, it does not affect either of them.

command is ln "file name" "link"

this can not be used on directories. and can be used only in the same fS and not outside file systems

Soft links: used when you want a temporary link. ths inode values are different here for link and the file.
this can be both for file and directories.
If the source file gets deleted the link will be removed at next reboot
. This can extend across file systems

command is ---ln -s "file" "link"

please reverrt if you have any qureries.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:40 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0