You can set up a symbolic link from ~you/public to your public directory. Your system administrator may have already done this for you.
cp r.ps public/report.psYou can also create and edit files directly inside the public file area:
cd public vi report.htmlBeware that if someone downloads report.html the moment that you finish creating or editing it, the downloaded copy may be truncated. You can eliminate this risk by editing temporary copies of files and moving them into place with mv when they are complete:
cp report.html report.html.new vi report.html.new mv report.html.new report.htmlYou can set up directories, symbolic links, etc. inside your public directory. Beware, however, that symbolic links pointing outside the public file area will not work.
Note that the name of a file controls its file type.
chmod go+r public/report.psSimilarly, if your directories are not world-executable by default, you must change their permissions:
chmod go+x public/old-reportsIf you create a world-readable directory, publicfile will allow FTP clients to see a list of files in that directory:
chmod go+r public/old-reportsThe list excludes names that contain spaces, tildes, or control characters.
In some cases you may want to make a file available to local users in the public file area without making it available through publicfile. You can do this by making the file world-executable but not user-executable:
chmod o+x public/tentative.ps chmod u-x public/tentative.pspublicfile will pretend that it can't read the file. Or you can use a filename beginning with a dot; publicfile converts leading dots to colons when it looks for files.
http://host/users/you/report.html ftp://host/users/you/report.htmlpublicfile also supports virtual hosts through HTTP. The file /public/file/vhost/report.html can be reached by the URL
http://vhost/report.htmlif vhost has an appropriate DNS A record.
publicfile automatically adds index.html to any HTTP URL ending with a slash (or containing just a host name), so
http://vhost http://vhost/ http://vhost/index.htmlall refer to /public/file/vhost/index.html.