Find the answer to your Linux question:
Results 1 to 2 of 2
hello folks i need some help to answer this questions Use ln to create links and investigate the behaviour of the links in different situations: 1. Change to the new ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Posts
    17

    i need help


    hello folks

    i need some help to answer this questions


    Use ln to create links and investigate the behaviour of the links in different situations:

    1. Change to the new directory and use ln -s to create a symbolic link to the file. Does the original file show any indication of the symbolic link?
    Do the same for the directory and see if there is any indication. Try to make a symbolic link to a file that does not exist, or make a symbolic link and then remove the file. What happens?
    2. Type ln -s blah blah. What happens when you try to read the file blah you just created? Explain.
    3. Now make a hard link to a file (i.e. ln without -s). What happens now?
    4. What happens when you change the permissions of the original file with chmod, or update its modification time with touch?
    5. Apart from the names, how can you tell which was the original file, and which is the link you just created?
    6. What happens if you remove the original?
    7. What happens if you try to make a hard link to a directory? To a non-existent file?


    thanks for help

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Sorry, detective linux, but homework questions are not allowed to be posted on the forums:

    http://www.linuxforums.org/forum/lin...ums-rules.html
    oz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •