Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pointing to another file

Status
Not open for further replies.

revit

Programmer
Oct 27, 2001
36
IL
i need to create an option of downloading a file from a server. the problem is that the file is kept in a directory that the user cannot access. thats why i want to make a link from a public_html dir to the file that the user can download.
i heard about the ln option but i did'nt find an example of it's use.

i'll appriciate it if someone will help me find one.
thanks in advane

 
Did you try "man ln" to get the man page for it?

As I recall the syntax is something like:
Code:
ln -s [i]filename[/i] [i]dest_path/filename[/i]
The -s creates a "symbolic" link rather than a "hard" link. I don't remember clearly what the major difference between the two is, but I think a symbolic link will work fine for what you want. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top