[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

FW: softlink/hardlink




>  -----Original Message-----
> From: 	Holp, John Mr.  
> Sent:	Friday, March 16, 2001 9:44 AM
> To:	'debian-usr@lists.debian.org'
> Subject:	softlink/hardlink
> 
> Debain Experts,
> 
> I have some confusion relative to soft links versus hard links and inode
> numbers.  If I do the following;
> 
> 	ls -li vmlinuz			while at 	/	(root)
> I get the following
> 
> 12	lrwxrwxrwx	1	root	root	19 Jan 18	08:05
> vmlinuz -> boot/vmlinuz-2.2.17
> 
> To me this means that vmlinuz is a soft link pointing to
> boot/vmlinuz-2.2.17
> 
> 	But when I do a ls -li /boot/vmlinuz-2.2.17	I get the following
> 
> 12	-rwxrwxrwx	1	root	root	1042807  Jan 18  08:05
> /boot/vmlinuz-2.2.17
> 
> 
> Here is my confusion, I thought only hard links used the same inode
> number?  Note that both are using inode 12.
> 
> Which begs the question how do you determine by inspection a soft link
> versus a hard link?
> 
> If both were the same size that would tend to point to a hard link but in
> this instance vmlinuz is only 19 versus 1042807 for the
> /boot/vmlinuz-2.2.17
> 
> Somewhere along the way I must have mistakenly learned that only hard
> links use the same inode number?
> 
> Please school me.
> 
> Thanks,
> 
> John



Reply to: