Some Unix Stuff

       When you use FTP to put your files in your directory on the GirlTECH server, you have to obey a few UNIX rules.  UNIX is picky about some things:
  • Filenames can be pretty long, up to hundreds of characters if necessary ....but don't do it.  It's needless extra effort for the viewers of your pages. 
  • Avoid the following when you are naming your files.  Many of them have special meaning to some UNIX programs.  Stick mainly to letters and numbers.  Don't use these characters.
    <   >   '   "   *   {    }   ^   !   \   [   ]    #   |   &   (   )   $    ?   ~
  • Don't put spaces in a filename.  If you need to separate words in a filename, use dashes or underslashes.
    and create a    filename_like_this.html  (except shorter, of course).
  • UNIX considers uppercase and lowercase letters to be completely different creatures.   unix.html, UNIX.HTML, Unix.html, uniX.Html, and Unix.htmL are all different filenames.  To be completely safe, make all of your filenames lowercase,     likethis.jpg

 

       In Windows 95 or 98 or on a Macintosh, when you drag a file to the Recycle Bin (Trash), the operating system hangs on to that file for a while, just in case you change your mind.  In UNIX, if you issue a command to delete a file, it just does it   ...no second chance, it's just gone.

       Similarly, when you use FTP, to copy files from your Mac or PC to a UNIX server, if there is a file in the destination directory with the same name as the one you are copying, UNIX will not issue you a friendly "Are you sure you want to do this?" message.  It will simply replace the file in the destination directory with your file.  Hopefully, this is what you intended.  The safest thing to do is to keep the directory on your hard drive very well organized, and set up exactly like the directories on the UNIX server. 

That's it.  Back to Friday's Table of Contents.

This page was last edited on June 22, 2000.

URL = http://teachertech.rice.edu/Materials/GT2000/Mac/day05/unixstuff.html

These pages were developed through GirlTECH, a teacher-training program sponsored by the Center for Excellence in Education (CEEE) and made possible by support from the National Science Foundation through EOT-PACI.
Copyright   Michael Sirois, GirlTECH, June 2000.

divider

last edited, ms 6-22-2k, 23:05.