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
Hard Link vs SOft Link???? skyineyes UNIX for Dummies Questions & Answers 3 05-29-2008 09:38 AM
tar the symbolic link ganga.dharan Shell Programming and Scripting 1 05-23-2008 04:11 AM
Difference between hard link and soft link in unix RAJACHOKALINGAM UNIX for Dummies Questions & Answers 2 08-01-2006 01:10 AM
symbolic Link bhargav UNIX for Dummies Questions & Answers 1 10-15-2004 06:41 AM
Differences between hard link and soft link penguin-friend UNIX for Advanced & Expert Users 3 03-08-2002 11:49 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-08-2008
Registered User
 

Join Date: Jan 2008
Posts: 2
need some info about symbolic link and hard link

hello folks
how y'all doin


well i have some questions about symbolic link and hard link

hope some one answer me

i open terminal and join as root
and i wrote ln -s blah blah
then i wrote ls
i see red file called blah blah
but didn't understand what is this can some one explain and is this the way to read it ?

what if remove the orginal file of hard link can i still see the content of the file

and can i try to make a hard link to a directory ? To a non-existent file

another more questions hope not one get angry coze i ask much

what if i try to change the permissions of the original file with chmod, or update its modification time with touch is there is something gunna happen for the links

that's what i wanna to know

thanks for all people who's gonna see the topic and thanks for who's gonna answer my questions
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 01-08-2008
Registered User
 

Join Date: Dec 2007
Posts: 208
Quote:
Originally Posted by detective linux View Post
i open terminal and join as root
and i wrote ln -s blah blah
then i wrote ls
i see red file called blah blah
but didn't understand what is this can some one explain and is this the way to read it ?
This should fail if blah already exists. If blah is a directory it will create the link in the directory.

Quote:
Originally Posted by detective linux View Post
what if remove the orginal file of hard link can i still see the content of the file
if its the last reference to the file then the file will be removed.

Quote:
Originally Posted by detective linux View Post
and can i try to make a hard link to a directory ? To a non-existent file
no

Quote:
Originally Posted by detective linux View Post
another more questions hope not one get angry coze i ask much

what if i try to change the permissions of the original file with chmod, or update its modification time with touch is there is something gunna happen for the links
the links all point to the same file so updating the permissions will appear like all links were changed. you cannot however change the permissions of a symbolic link.
Reply With Quote
  #3 (permalink)  
Old 01-08-2008
Registered User
 

Join Date: Jan 2008
Posts: 2
thanks about all of this info
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:11 AM.


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