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 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 12:38 PM
tar the symbolic link ganga.dharan Shell Programming and Scripting 1 05-23-2008 07:11 AM
Difference between hard link and soft link in unix RAJACHOKALINGAM UNIX for Dummies Questions & Answers 2 08-01-2006 04:10 AM
symbolic Link bhargav UNIX for Dummies Questions & Answers 1 10-15-2004 09:41 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 Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-08-2008
detective linux detective linux is offline
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
  #2 (permalink)  
Old 01-08-2008
frank_rizzo frank_rizzo is offline Forum Advisor  
Resident BOFH
  
 

Join Date: Dec 2007
Posts: 423
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.
  #3 (permalink)  
Old 01-08-2008
detective linux detective linux is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 2
thanks about all of this info
Sponsored Links
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 06:54 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