home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / question / 15997 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.2 KB  |  42 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!ukma!bogus.sura.net!udel!sbcs.sunysb.edu!zheng
  3. From: zheng@cs.sunysb.edu (Xiaohong Zheng)
  4. Subject: Re: Soft link
  5. Message-ID: <1993Jan28.045239.20867@sbcs.sunysb.edu>
  6. Sender: usenet@sbcs.sunysb.edu (Usenet poster)
  7. Nntp-Posting-Host: sbskiena
  8. Organization: State University of New York, Stony Brook
  9. References: <1k43bfINNctj@msuinfo.cl.msu.edu>
  10. Date: Thu, 28 Jan 1993 04:52:39 GMT
  11. Lines: 29
  12.  
  13. In article <1k43bfINNctj@msuinfo.cl.msu.edu> friedenb@pine.egr.msu.edu (Gedaliah Friedenberg) writes:
  14. >
  15. >I have a program which requires me to make a 
  16. >soft link of ~/.plan to /tmp/.plan
  17. >
  18. >I have looked in manuals, but with no success.
  19. >I know about hard links (ln -s), but I have
  20. >never heard of soft links until this program.
  21. >
  22. >If someone could let me know how to do this,
  23. >I would greatly appreciate it.
  24. >
  25. >Gedaliah Friedenberg
  26. >-=-Department of Mechanical Engineering
  27. >-=-Department of Metallurgy, Mechanics and Materials Science
  28. >-=-Michigan State University
  29. >
  30. >
  31. >
  32.  
  33.    I guess you mean symbolic link, which is special directory entry
  34. that points to another file or directory. Just do the following
  35.  
  36.        ln -s ~/.plan /tmp/.plan
  37.  
  38. If you remove ~/.plan, /tmp/.plan will point to something that does exist.
  39.                    
  40.  
  41.  
  42.