Notice! This document is currently in Archived status.
The content of this document may be incorrect or outdated.

Print this article Edit this article

Changing my local directory while in ftp

Purdue Engineering Computer Network

There are two sets of directories involved during an ftp session: the working directory on your local machine and the directory on the remote machine. Moving around the local directory is easy:

ftp> lcd directory

This changes the default directory on your local machine to the named directory.

The usage rules for lcd are the same as for the UNIX cd command. These are summarized as follows:

  • If no directory is given, lcd sets your position back to the default directory for your account.

  • If the directory starts with a slash (/), lcd moves you to the specified directory regardless of your current position (absolute positioning).

  • If the directory is .., lcd moves you up one level from the directory at which you are currently positioned.

  • If the directory starts with an alphanumeric character, lcd looks for the directory as a subdirectory of the current one.

Additional Information:
Changing directories on the remote host

Last Modified: Dec 19, 2016 11:12 am US/Eastern
Created: May 31, 2007 12:05 pm GMT-4 by admin
JumpURL: