[an error occurred while processing this directive] Using a Command Line Interface This page is part of the Web Communications Guide to Using FTP. It provides information on using your command line FTP client to manage your WebCom account. It explains how to list files, change directories and how transfer files to and from your WebCom account. Differences Between Filenames on WebCom and Your Personal Computer WebCom Servers use Unix, the standard operating system for serving data on the Internet.

Unix is case sensitive. Under Unix, filename.GIF, filename.gif and FILENAME.GIF all refer to different files. This is not the case with some other operating systems (such as DOS/Windows).

There is no "undelete" under Unix. Once a file is gone, it is GONE. Forever. Period. Regular backups are highly recommended. If you make a major mistake, WebCom administration will attempt to restore your files, but we make absolutely no guarantees about this (we also charge a fee for this service).

Unix paths use the forward slash "/welcome.html". DOS users used to referring to files with the backslash should keep this in mind. The equivalent of "c:\upload\myfile" under UNIX is "/upload/myfile".

Moving Around and Listing Files This section covers the commands neccessary to move around and list the files in your WebCom account. It starts immediately after you have logged on, and steps through a tour of your account.

Type "pwd" at the prompt. You will see "/pub/[youruserid]". This is your home directory. All files you transfer to WebCom will be located here, or in a subdirectory of it.

Type "dir" to get a list of all the files and sub-directories. A directory can be distinguished from a regular file by the "d" at the beginning of the first column of a file listing. A listing with "drwxr-xr-x" (for example) in the first column is a directory. The leading character, "d", indicates that the listing is a directory.

If this is your first time logging on, then only a few files and directories will be listed. (For more information about these, see Your WebCom Directory.)

Type "cd www" to change your directory to "www". "cd" is the command you use to change the directory you are located in. Type "pwd" after you have moved to the "www" directory, and the your client will show "/pub/[youruserid]/www".

The "www" directory is where the files and directories you wish to be accessible through the World Wide Web must be placed or created. If you are accessing your account before having placed any files in this directory, only one file will be listed: "welcome.html" (this file was placed in your "www" directory when your account was set up).

Transferring Files to your WebCom account Now we are ready to transfer a file to your WebCom account. Make sure the file you have selected is a small one--10 kilobytes or less--so the transfer time is short. (The size of a file can determined by listing it on your computer. One of the entries should display a number. If the number produced is under "10,000" or "10k", then you are safe.)

Enter "binary" at the prompt. Many FTP clients start out in "ASCII" mode. This will result in damage to any non-plain text file during transfer, such as a graphic image. Remember to do this every time you log on, if your client does not have a setting to permanently alter this.

The "lcd" command allows you to change the "working" directory on your local machine. "lcd" alone will transfer you to the directory you were located in when the FTP client was launched.

Transfer to the directory where the test file you selected at the beginning of the tutorial is located. "lcd path/to/file" in Unix, or "lcd c:\path\to\file" in DOS (or the equivalent on your system).

The command to upload a file to WebCom is "put [filename]" where [filename] is the name of the file on your local system. For information on how to transfer multiple files, see the WebCom FAQ: How do I transfer a number of files at once?.

Your client will provide information about the progress of the transfer. Once it is finished, type "dir". The file will be listed in the "www" directory of your WebCom account.

The next step is to alter the permissions of your file, to make sure that people can or can not read it, as you choose.

[an error occurred while processing this directive]