Symbolic Links: Defined
Posted by: Klom Dark
Times Read: 11239
9/23/1999 7:32:52 PM

Here's one short, really annoyingly hard-to-find command:

ln

The 'ln' command is used to create a symbolic link to another file or directory. The closest thing Windows NT has to it is creating a desktop shortcut to a file or directory. However, 'ln' has a bit more power (I won't go into that part, just type 'man ln' to learn more)

That's all pretty simple, and I can tell that all you experienced Linux people are shaking their heads at this and saying "Like, duh, ya big moron..."

Here's why I am putting this here:

  • Get any doc/web page/whatever about how to compile/recompile the Linux kernel. Note that they ALWAYS mention creating a Symbolic Link to a Linuzxxx directory, so that you can then change back to the old if you screw up the compile.
  • Get your little install book that came with your Linux install (If you bought it at a store)
  • Get a big fat book on Linux. (I went out and bought RedHat Linux: Unleashed)


Note that they ALL talk about Symbolic Links as if they're no big deal and everyone has them (Right next to their opinion, right?)... Also note that there is NOWHERE that tells you how to make a damn Symbolic Link!!! It'll tell you about why you would make one, and where you would make one, but never HOW you would make one! (Linux authors take note of that!!)

RH Linux: Unleashed - It's pathetically hilarious about this (I gotta tell ya about this one...)

OK, in the Index in the back of the book (Always a great place to go in any technical book) it lists Symbolic Link, says see page 643. Cool, so I flip to page 643. This drops me in the Glossary. It has the entry Link, Symbolic. It says:

Directory entry that provides an alias to another file that can be in another filesystem. Multiple entries appear in the directory for one physical file without replication of the contents. Implemented through link files; see also link file.

I look at Link File. It says:

File used to implement a symbolic link producing an alias on one filesystem for a file on another. The file contains only the fully qualified filename of the original (linked-to) file.

There is also an entry for "Link, Soft" which says to see "Link, Symbolic"... (Great help there... Not!)

Nowhere in the whole darn book does it mention that 'ln' is used to actually create these darn link files!  After learning from finally asking someone else about how to create a symbolic link, I finally find "ln" at least listed under "File Utilities" on page 352, but that's it. Only a list of the file utility commands (such as ln, cp, rm, mkdir, etc). However, it is NEVER defined.

For lack of this little command, it's very hard to do much advanced stuff in Linux. It kinda reminds me of that story about "for lack of a nail, the kingdom fell"

Oh well, hope this helps somebody out there! :)

   
RE: Symbolic Links: Defined by Comfortably Anonymous, 12/27/2000 3:54:27 PM
RE: Symbolic Links: Defined by Comfortably Anonymous, 3/26/2003 12:33:53 AM
RE: Symbolic Links: Defined by pberliot, 3/28/2003 11:47:23 AM
RE: RE: Symbolic Links: Defined by Comfortably Anonymous, 3/31/2003 7:00:50 PM
RE: RE: RE: Symbolic Links: Defined by Comfortably Anonymous, 5/12/2003 3:29:18 AM
Output of 'man ln' by Klom Dark, 6/9/2003 10:49:22 AM
Example of using 'ln' by Klom Dark, 6/9/2003 11:23:00 AM
RE: Example of using 'ln' by Comfortably Anonymous, 6/16/2003 2:52:27 PM
RE: Example of using 'ln' by Klom Dark, 6/18/2003 3:14:17 PM
RE: RE: Example of using 'ln' by Comfortably Anonymous, 7/1/2003 1:17:45 PM
RE: RE: RE: Example of using 'ln' by Comfortably Anonymous, 1/8/2004 1:14:12 AM
RE: Example of using 'ln' by Comfortably Anonymous, 7/15/2003 3:40:17 AM
Access via Browser by Klom Dark, 7/16/2003 3:36:55 PM
RE: Access via Browser by Comfortably Anonymous, 7/17/2003 5:02:22 AM
RE: Access via Browser by Klom Dark, 7/18/2003 4:37:02 PM
RE: RE: RE: RE: Symbolic Links: Defined by Comfortably Anonymous, 7/21/2003 3:10:36 PM
RE: Symbolic Links: Defined by Comfortably Anonymous, 8/16/2003 4:21:58 AM
RE: RE: Symbolic Links: Defined by Comfortably Anonymous, 3/12/2004 11:42:11 AM
RE: Example of using 'ln' by Comfortably Anonymous, 10/9/2003 11:04:10 PM
RE: Symbolic Links: Defined by Comfortably Anonymous, 11/17/2003 10:26:27 AM
RE: RE: Symbolic Links: Defined by Comfortably Anonymous, 1/18/2004 9:42:44 PM
RE: Symbolic Links: Defined by p0l, 5/10/2004 11:44:02 AM
Fair Use Notice
This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available in our efforts to advance understanding of environmental, political, human rights, economic, democracy, scientific, and social justice issues, etc. We believe this constitutes a 'fair use' of any such copyrighted material as provided for in section 107 of the US Copyright Law. In accordance with Title 17 U.S.C. Section 107, the material on this site is distributed without profit to those who have expressed a prior interest in receiving the included information for research and educational purposes. For more information go to: http://www.law.cornell.edu/uscode/17/107.shtml . If you wish to use copyrighted material from this site for purposes of your own that go beyond 'fair use', you must obtain permission from the copyright owner.

Beware he who would deny you access to information, for in his heart he dreams himself your master.

© 1998-2010 LLabmik Software Development