Sunday, April 19, 2009

Moms Anal Adventure On Demand

symlinks.

If there is something I looks fantastic are symbolic links, a small feature of this OS, but no less robust.
 And they serve?  Good for many things, basically a symbolic link (symbolic link) is a file that points to another file or directory, then every one will find the functionality you need, I use such as not to repeat content similar facilities for example using the same images, or the same programs, but of course each administrator / user will find a different utility. 
like doing? well here it goes ...

The command used is ln

  symbolic link file contains only one path file or directory. 
as a symbolic link.


# ln-s creates

dir2ls dir2 dir2ls as a symbolic link to a directory.
  • # ls-l shows the letter
  • l
  • the file type to indicate that it is a symbolic link. dir2 # ls # ls dir2ls
  • show the same content files.
  • # ls-l dir2ls

shows that it is a symbolic link and points to where noted.

# cd dir2ls


# ls-l displays the contents
# pwd

indicates the directory link name, but

# / bin / pwd
shows the real directory, not the symbolic link, pwd indicates the route is reached in the directory, / bin / pwd indicates the true path to the directory. It should use / bin / pwd to avoid being fooled by symbolic links to directories. The pwd command is internal to the shell, / bin / pwd is a separate program.


# cd ..
# mv dir2 dir2

renames the actual directory, the symbolic link continues to point to dir2, so
# cd dir2ls
fails, since there is no real object.

# mv dir2 dir2

replaces the original name pointed to the link.
# rmdir dir2ls
fails because it is not a link directory.

# rm dir2ls
delete the link. A symbolic link is deleted with rm, and rmdir not to, since the symbolic link is a file and not a directory, even if it is a symbolic link to a directory.

# ls dir2

when deleting a symbolic link only deletes a file pointer, not the real thing.

should not be confused with symbolic links hard links (hard link) and that the latter are somewhat different, are those in which access is indistinguishable from the real, and the deletion of the link causes the deletion of the file or directory if it was the last hard link to the file. I hope you learn
Salu2
MF

0 comments:

Post a Comment