The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Hard Link vs SOft Link???? skyineyes UNIX for Dummies Questions & Answers 3 05-29-2008 09:38 AM
need some info about symbolic link and hard link detective linux UNIX for Dummies Questions & Answers 2 01-08-2008 03:36 AM
Differentiate Soft and Hard Link balu_solaris UNIX for Dummies Questions & Answers 2 07-18-2007 11:41 PM
hard/soft link question Browser_ice UNIX for Dummies Questions & Answers 1 08-18-2006 11:13 PM
Difference between hard link and soft link in unix RAJACHOKALINGAM UNIX for Dummies Questions & Answers 2 08-01-2006 01:10 AM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-08-2002
penguin-friend
Guest
 

Posts: n/a
Question Differences between hard link and soft link

Hi all!
I'd like to know the differences between hard links and soft links. I've already read the ln manpage, but i'm not quite sure of what i understood.
Does a hard link sort of copy the file to a new name, give it the same inode number and same rights?
What exactly should I do to do this:
I'm replacing the /usr/bin/passwd by /usr/bin/npasswd on over 400 servers. I did a ls -li on /usr/bin/passwd and came up with 5 same inodes, on of 'em being /usr/bin/chfn.
I read the man page on chfn, it's a hard link to passwd.
After moving /usr/bin/chfn to chfn.old, is this syntax correct ( for a hard link?):
$ ln /usr/bin/npasswd /usr/bin/chfn


Thanx for the help....



Forum Sponsor
  #2 (permalink)  
Old 03-08-2002
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,182
This was answered in lots of detail before. A simple keywords search will easily find the discussion.

Creating a Shortcut in a User Driectory

Please take the time to do keyword searches BEFORE asking questions....
  #3 (permalink)  
Old 03-08-2002
penguin-friend
Guest
 

Posts: n/a
Thanx Neo...

Thanx, it's just that i didn't thimk of the + on the keyword search...
  #4 (permalink)  
Old 03-08-2002
Neo's Avatar
Neo Neo is offline
Administrator
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,182
BTW, the "+" was added by the forum search software... all you have to do is put in keywords with spaces when searching.


I used:

Quote:
link hard symbolic difference
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:57 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0