65
..
: Returns to the upper directory. The execution of the
cd ..
command equals the execution of the
cdup
command. If the current working directory is the FTP root directory, the
cd ..
command does not change
the current working directory. This argument does not support command line online help.
/
: Returns to the FTP root directory. The keyword does not support command line online help.
Examples
# Change the working directory to the subdirectory
logfile
of the current directory.
[ftp] cd logfile
250 CWD command successful.
# Change the working directory to the subdirectory
folder
of the FTP root directory.
[ftp] cd /folder
250 CWD command successful.
# Change the working directory to the upper directory of the current directory.
[ftp] cd ..
250 CWD command successful.
# Change the working directory to the FTP root directory.
[ftp] cd /
250 CWD command successful.
[ftp]
Related commands
pwd
cdup
Use
cdup
to enter the upper directory of the FTP server.
Syntax
cdup
Views
FTP client view
Default command level
3: Manage level
Usage guidelines
This command does not change the working directory if the current directory is the FTP root directory.
Examples
# Change the working directory to the upper directory.
[ftp] pwd
257 "/ftp/subdir" is current directory.
[ftp] cdup
200 CDUP command successful.
[ftp] pwd
257 "/ftp" is current directory.
[ftp]