Notes for SCS HTML Class
> So I need to somehow move that file into the public_html directory, > which would be easy enough in DOS or Windows, but I can't figure out how > to do it in UNIX. I tried the HELP command, but had no luck. Can you > tell me how to do it?
The UNIX command is:
mv source destination
where source and destination are the filenames (or pathnames) of what you want to move, and where you want to move it, respectively. You can use the dot notation from DOS, ie:
"." = "current directory" ".." = "next higher directory"
So to move the file "index.html" from your home directory into public_html, you'd type:
mv index.html ./public_html
or, from the public_html directory, you could pull in the file with:
mv ../index.html .
Note that the period at the end is a pathname, not punctuation. Also, this command can be used to rename files.
> Incidentally, I did all the html coding in lower-case, because
I prefer
> to do it that way. PLEASE, tell me they are case-insensitive, so
I
> don't have to do it all over.
HTMl tags are case-insensitive, so you don't have to do it all over.
> Is there any way I can view it before moving it into the public_html > directory? I guess I can copy it from the telnet client (or can I?) and > paste it into my Netscape Gold viewer, to look at it. You think?
Yes, you can cut and paste from the telnet window to other windows - you may lose linefeeds, but that doesn't matter with HTML code. You'll need to paste it into an empty textfile, which you can then save with an HTML (or HTM) extension, and load into Netscape. Sounds complex, but it's not, just a bit confusing. It's just that Netscape needs to open a file to look at, it won't recognize raw HTML pasted into it. Netscape's Edit Source option in the View menu of the Editor provides a nice interface with Notepad, auto-loading and such.