Results 1 to 6 of 6

Thread: How to create Hard Link in Linux

  1. #1
    Join Date
    Aug 2010
    Posts
    34

    How to create Hard Link in Linux

    Hello,
    I do not understand the following lines

    Code:
    linux: / usr / lib / openoffice / share / fonts # ln-v-d / usr/X11R6/lib/X11/fonts/TT /
    create hard link `. / dd 'to` / usr/X11R6/lib/X11/fonts/TT'
    Ln: creating hard link `. / Dd 'to `/ usr/X11R6/lib/X11/fonts/TT ': Operation not permitted
    linux: / usr / lib / openoffice / share / fonts #
    How can i make a hard link to that directory? Also what exact is the work of a hard link in linux. Thank you for your help.

  2. #2
    Join Date
    Mar 2010
    Posts
    162

    Re: How to create Hard Link in Linux

    A hard link is a directory entry that references the same inode as another directory entry (only working in the same file system). One should therefore avoid very sparingly and use only with good reason. If possible you should SymLinks favor, because hard links are difficult to understand something as symlinks, and are also not all programs be supported and you may want / would imagine it. Absolutely common for the uninitiated copy (not!) way, is something like:

    Code:
    chown root.root / home/user1/.profile
    ln / home/user1/.profile / home/user2/.profile
    ln / home/user1/.profile / home/user3/.profile
    ... (For all users)
    This is all well all user profiles a par "(what the user personally, but not good and perhaps not even find the meaning of. profile equivalent), but an outsiders' Admin occurs as rapidly in a faux pas when he says, local what to change, its change in a magical way (via hard link) globally to all user s impact. And it is particularly bad if the setting happens to a terminal and then you see nothing more )

  3. #3
    Join Date
    Mar 2010
    Posts
    197

    Re: How to create Hard Link in Linux

    See this
    Code:
    > Ln-v-d / usr/X11R6/lib/X11/fonts/TT /
    And
    Code:
    ln one
    ln [OPTION] ... OBJECTIVE [command name]
    Code:
    -D,-F, - directory
    Directories to link hard. (Only super-user)

  4. #4
    Join Date
    Mar 2010
    Posts
    200

    Re: How to create Hard Link in Linux

    As far as I know, no Linux support (external) hard links to directories. With external I mean that you can not create, because ".." and "." are internal hard links in linux operating system. I guess i am correct here.

  5. #5
    Join Date
    Jan 2010
    Posts
    119

    Re: How to create Hard Link in Linux

    You can not create under Linux, because this can cause problems, unless you really know what you are doing. For example, you could try a sort of second ".." create, it could at cp and find or create what I know quite a mess. Cycles are quite conceivable (never tested, that is not even supported) Why it is now generally prohibited, is a good question, which confirm that the option already protected because they can only use root. That is probably a kernel issue, so time to ask in a corresponding mailing list.

  6. #6
    pollocktrance Guest

    Re: How to create Hard Link in Linux

    A link to a file can not be separated from the original directory entry, changes to a file is actually independent of the name used to refer to a file. Hard links do not usually refers to directories and may span file systems.

Similar Threads

  1. How to create soft link in Red Hat 9
    By Wolf Broad in forum Networking & Security
    Replies: 5
    Last Post: 26-05-2011, 07:55 PM
  2. How to create a link to view an image
    By Mindstorm in forum Software Development
    Replies: 5
    Last Post: 05-01-2010, 09:14 AM
  3. Create soft link on Windows Sharing
    By Gunner 1 in forum Networking & Security
    Replies: 5
    Last Post: 28-12-2009, 12:27 PM
  4. create link in entourage
    By Ashton5 in forum Windows Software
    Replies: 2
    Last Post: 26-06-2009, 11:06 PM
  5. Create Symbolic Link in Unix or Linux
    By DANIEL 602 in forum Tips & Tweaks
    Replies: 1
    Last Post: 02-12-2008, 12:38 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,575,878.61168 seconds with 16 queries