The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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
Hard Link vs SOft Link???? skyineyes UNIX for Dummies Questions & Answers 3 05-29-2008 12:38 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 02:13 AM
Difference between hard link and soft link in unix RAJACHOKALINGAM UNIX for Dummies Questions & Answers 2 08-01-2006 04:10 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-08-2002
penguin-friend
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
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....



  #2 (permalink)  
Old 03-08-2002
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,668
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
Bits: 0 [Banking]
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 online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,668
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
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 05:13 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