Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a large(1 TB) file that I would like to download from the centos server via http, should I create a symbolic link to the file to the http file directory? would the link work? the file is too large to be copied over given the server hdd. if not, what are the alternatives?

share|improve this question
add comment

migrated from stackoverflow.com May 12 '11 at 12:40

This question came from our site for professional and enthusiast programmers.

2 Answers

It will work if you have the Options FollowSymLinks enabled for that Directory or Location (or in an .htaccess file, if they are enabled for that Directory or Location).

Just test on another, smaller symlinked file to be sure it's enabled before trying with the full file, if you have concerns.

share|improve this answer
add comment

See mount --bind. From the mount man page:

The bind mounts.
          Since Linux 2.4.0 it is possible to remount  part  of  the  file
          hierarchy somewhere else. The call is
                 mount --bind olddir newdir
          or shortoption
                 mount -B olddir newdir
          or fstab entry is:
                 /olddir /newdir none bind

          After  this  call the same contents is accessible in two places.
          One can also remount a single file (on a single file).

          This call attaches only (part of) a single filesystem, not  pos‐
          sible  submounts.  The entire file hierarchy including submounts
          is attached a second place using
                 mount --rbind olddir newdir
          or shortoption
                 mount -R olddir newdir
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.